Skip to content

Instantly share code, notes, and snippets.

@m-x-k
Created November 25, 2018 11:01
Show Gist options
  • Save m-x-k/a75afe262c8d94cdbfbe70ca285700c5 to your computer and use it in GitHub Desktop.
Save m-x-k/a75afe262c8d94cdbfbe70ca285700c5 to your computer and use it in GitHub Desktop.
Spring Boot configuration: JSP access
@Configuration
@EnableWebMvc
public class WebApplicationConfig implements WebMvcConfigurer {
@Override
public void configureViewResolvers(ViewResolverRegistry registry) {
registry.jsp().prefix("/WEB-INF/views/").suffix(".jsp");
}
}
@m-x-k
Copy link
Author

m-x-k commented Nov 25, 2018

spring.mvc.view.prefix: /WEB-INF/views/
spring.mvc.view.suffix: .jsp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment