Created
November 25, 2018 11:01
-
-
Save m-x-k/a75afe262c8d94cdbfbe70ca285700c5 to your computer and use it in GitHub Desktop.
Spring Boot configuration: JSP access
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Configuration | |
@EnableWebMvc | |
public class WebApplicationConfig implements WebMvcConfigurer { | |
@Override | |
public void configureViewResolvers(ViewResolverRegistry registry) { | |
registry.jsp().prefix("/WEB-INF/views/").suffix(".jsp"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
spring.mvc.view.prefix: /WEB-INF/views/
spring.mvc.view.suffix: .jsp