1.06—SpringMVC directly accesses pages in jsp under WEB-INF

First, the purpose:

Jump directly to WEB-INF/JSP/index.jsp in order to run the project

Two, placement

In SpringMVC it ​​is configured in xml:

1. Enable scan annotation

2. Configure the view resolver

Configure in web.xml

Configure in IndexAction

 

I have tried several times to achieve the purpose, if you have any questions, you can comment below, thank you!

 

 

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324935087&siteId=291194637