Spring MVC

Spring MVC can be extensively configured through application.properties. Listed here are some of the important configurations:

# Date format to use. For instance `dd/MM/yyyy`. spring.mvc.date-format=# Locale to use. spring.mvc.locale=# Define how the locale should be resolved. spring.mvc.locale-resolver=accept-header# Should "NoHandlerFoundException" be thrown if no Handler is found? spring.mvc.throw-exception-if-no-handler-found=false# Spring MVC view prefix. Used by view resolver. spring.mvc.view.prefix=# Spring MVC view suffix. Used by view resolver. spring.mvc.view.suffix=

Get Mastering Spring 5.0 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.