I have a folder structure like so:
project/src/main/
java/apps/
blog/
controllers/
blogController.java
models/
post.java
views/
webapp/WEB-INF/views/
blog/
blog.jsp
I want to move the blog.jsp from the WEB-INF/views
directory to the apps/blog/views/
directory to allow for more easily porting code from one spring MVC application to another.
I have tried to create my own view resolver but the resolver seems to only resolve to paths within the webapp
directory.
I thought I could use maven to collect the jsp's into the /WEB-INF/views/blog/
on a maven goal but I can't seem to find clear instructions to get the views in the views folder under the correlating app name (views/blog
)
Is it possible to have this kind of setup or is there a better way to achieve this?