聚合全网技术文章,根据你的阅读喜好进行个性推荐
Spring 配置文件
Spring MVC 的配置文件
在启动的时候被注册的两次,倒腾了一晚上还没解决。
spring 那边要去掉扫描controller 就可以了
<context:exclude-filter type="annotation" expression="org.springframework.stereotype.Controller" /> <context:exclude-filter type="annotation" expression="org.springframework.web.bind.annotation.ControllerAdvice" />
spring 那边要去掉扫描controller 就可以了
<context:exclude-filter type="annotation" expression="org.springframework.stereotype.Controller" />
<context:exclude-filter type="annotation" expression="org.springframework.web.bind.annotation.ControllerAdvice" />