Add throwExceptionIfNoHandlerFound property

Add a property to customize if an exception should be thrown when no
handler was found to process a given request.

Closes gh-4000
This commit is contained in:
Stephane Nicoll
2015-10-09 11:40:46 +02:00
parent 535a696604
commit 422444c3f2
4 changed files with 48 additions and 1 deletions

View File

@@ -151,6 +151,7 @@ content into your application; rather pick only the properties that you need.
spring.mvc.favicon.enabled=true
spring.mvc.message-codes-resolver-format= # PREFIX_ERROR_CODE / POSTFIX_ERROR_CODE
spring.mvc.ignore-default-model-on-redirect=true # if the content of the "default" model should be ignored redirects
spring.mvc.throw-exception-if-no-handler-found=false # if a "NoHandlerFoundException" should be thrown if no Handler was found to process a request
spring.mvc.async.request-timeout= # async request timeout in milliseconds
spring.mvc.view.prefix= # MVC view prefix
spring.mvc.view.suffix= # ... and suffix