4280 shaares
3 results
tagged
controller
Got the game recently, and I tried to play it with an Afterglow Gamepad for Xbox 360
.
I just spent more than 1 hour trying to configure it so that the triggers work.
The solution on this forum worked for me.
Simply add the following class to your project. It will be automatically registered at start-up if you use the @EnableAutoConfiguration
annotation :
@ControllerAdvice // Makes this the default behaviour of all controllers
@ConditionalOnProperty(prefix = "app", name = "disable-default-exception-handling")
class GlobalControllerExceptionHandler {
@ExceptionHandler(Exception.class) // Catch any exception
@ResponseStatus(HttpStatus.INTERNAL_SERVER_ERROR) // Returns an error code …
Just some handy accessors for the brower console :
var myScope = $('#directive > select.or').scope()
var $rootScope = $('body').scope() // if <body> has the 'ng-app' attribute
var myController = $('#directive > select.or').controller()
var injector = $(document.body).injector()
var myService = injector.get('myServiceName')
And there are 3 handy pre-commit hooks :
- repo: local
hooks …