P
P
parkito2017-06-18 16:15:59
Java
parkito, 2017-06-18 16:15:59

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;

Tell me, please, how to solve this problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel Dudenkov, 2017-06-22
@viperz

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 question

Ask a Question

731 491 924 answers to any question