SpringMVC web 注解实现
SpringMVC web 注解实现 1,配置web.xml 实现将所有的web访问引入到SpringMVC框架中 < servlet > < servlet-name > aaa </ servlet-name > < servlet-class > org.springframework.web.servlet.DispatcherServlet </ servlet-class > < init-param > < param-name > contextConfigLocation </ param-name > < param-value > classpath:spring-mvc.xml </ param-value > </ init-param > </ servlet > < servlet-mapping > < servlet-name > aaa </ servlet-name > < url-pattern > / </ url-pattern > </ servlet-mapping > 2,引入maven的依赖 < project xmlns = " http://maven.apache.org/POM/4.0.0 " xmlns: xsi = " http://www.w3.org/2001/XMLSchema-instance " xsi: