|
楼主 |
发表于 2018-8-14 23:21:33
|
显示全部楼层
admin 发表于 2018-8-14 22:56
看常见问题贴,扫描路径配置
我已经加了扫描路径的,3.7.2版本我加了就可以,3.7.8版本不一样了吗 ?
<!-- 加载controller的时候,不加载service,因为此时事物并未生效,若此时加载了service,那么事物无法对service进行拦截 -->
<context:component-scan base-package="org.jeecgframework.web.*,com.dhroom.*,com.jeecg.*,org.jeecgframework.jwt.*">
<context:exclude-filter type="annotation"
expression="org.springframework.stereotype.Service" />
</context:component-scan>
<context:component-scan base-package="com.dhroom.wxweb.*">
<context:include-filter type="annotation"
expression="org.springframework.stereotype.Service" />
</context:component-scan> |
|