关注JEECG发展历程 关注最新动态和版本, 记录JEECG成长点滴 更新日志 - 技术支持 - 招聘英才

JEECG最新版本下载 JEECG智能开发平台 - 显著提高开发效率 常见问题 - 入门视频 - 参与开源团队

商务QQ: 69893005、3102411850 商务热线(5*8小时): 010-64808099 官方邮箱: jeecgos@163.com

查看: 6878|回复: 0

[环境搭建] yan888nn.5.关于jeeg配置文件的解读,Dao重复扫描的问题

[复制链接]
发表于 2017-3-22 17:23:30 | 显示全部楼层 |阅读模式
版本:jeecg3.6.6,非maven版本
在spring-mvc.xml 和 spring-mvc-hibernate.xml的配置文件中,重复扫描Dao。
在spring-mvc.xml中已有对dao层的扫描,在spring-mvc-hibernate.xml中也对dao层有扫描,应该排除spring-mvc.xml中的dao
<context:component-scan base-package="org.jeecgframework.web.*,com.jeecg.*,com.buss.*">
                <context:exclude-filter type="annotation"
                        expression="org.springframework.stereotype.Service" />       
<!-- 添加以下一句 -->
<context:exclude-filter type="annotation"
                        expression="org.springframework.stereotype.Repository" />
        </context:component-scan>
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表