在springMVC-servet.xml中加后导致 @Controller失效,访问都是 404
springMVC-servet.xml代码:
applicationContext-Beans.xml代码:
项目结构:
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
将
springMVC-servet.xml文件中的<context:annotation-config/>换成<mvc:annotation-driven/>后解决问题。