web.xml 配置怎么找?
spring-framework-5.1.8.RELEASE-dist 包
路径:spring-framework-5.1.8.RELEASE-dist\spring-framework-5.1.8.RELEASE\docs\spring-framework-reference
也可以去spring官网去找:
<web-app>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/app-context.xml</param-value>
</context-param>
<servlet>
<servlet-name>app</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value></param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>app</servlet-name>
<url-pattern>/app/*</url-pattern>
</servlet-mapping>
</web-app>
标签含义参见:https://blog.csdn.net/lingyiwin/article/details/92232881