spring主配置文件中讲Controller排除即可
<context:component-scan base-package="scaffold">
<context:exclude-filter type="annotation" expression="org.springframework.stereotype.Controller"/>
</context:component-scan>
spring mvc 扫描Controller两次
最新推荐文章于 2023-03-17 13:47:11 发布