就是我想分包不知道怎么改,现在是都塞到一个文件里了太臃肿我想改改.
<!-- 配置事务切面,即让哪些包下的类需要事务 -->
<aop:config>
<aop:pointcut id="pointcut" expression="execution(* com.wzp.Service.*.*(..))"/>
<aop:advisor advice-ref="tx" pointcut-ref="pointcut"/>
</aop:config>
<!-- 将mapper代理对象加入到Spring容器 -->
<bean class="org.mybatis.spring.mapper.MapperScannerConfigurer">
<property name="basePackage" value="com.wzp.Dao"/>
</bean>

想要这样的