Answer the question
In order to leave comments, you need to log in
How to override resource path in spring boot?
Hello. There is a web application on spring-boot. From the point of view of maven, it is single-module.
---main
---java
---resources
---webapp
in webapp are jsp. I need to make this application maven modular. Accordingly, the spring-boot configurator will be in one module, and the directory with jsp in another. I can't tell the configurator to see my jsp
InternalResourceViewResolver resolver = new InternalResourceViewResolver();
resolver.setViewClass(JstlView.class);
resolver.setPrefix("/");
resolver.setSuffix(".jsp");
return resolver;
Answer the question
In order to leave comments, you need to log in
It doesn't seem like a trivial task. Apparently, such a situation was not initially included in the design: https://stackoverflow.com/questions/32082674/sprin... .
Why not make the project that is responsible for the JSP a separate boot application? This is what we have done in our project. It communicates with data-providing services via RMI/HTTP.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question