在spring-mvc.xml 文件中添加下面代码
<bean class="org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping"></bean>
添加后重新运行项目 成功看到页面
在spring-mvc.xml 文件中添加下面代码
<bean class="org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping"></bean>
添加后重新运行项目 成功看到页面
相关文章: