spring-mybatis整合异常2
2024-08-24 09:24:40
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [spring.xml]: Initialization of bean failed; nested exception is java.lang.IllegalArgumentException: warning no match for this type name: com.imooc.hospital.service [Xlint:invalidAbsoluteTypeName]
检查发现service包出错,织入点设置为service的实现类包的全部方法
错误代码
<aop:config> <aop:pointcut id="txPointcut" expression="execution(* com.imooc.hospital.service.*(..))"/> <aop:advisor advice-ref="txAdvice" pointcut-ref="txPointcut"/> </aop:config>
正确代码
<aop:config> <aop:pointcut id="txPointcut" expression="execution(* com.imooc.hospital.service.impl.*.*(..))"/> <aop:advisor advice-ref="txAdvice" pointcut-ref="txPointcut"/> </aop:config>
最新文章
- mybatis 使用记录(二) 动态拼接查询条件
- String、StringBuffer、StringBuilder的一些小经验……
- WisDom.Net 框架设计(四) 用户安全
- ll 详解
- 04737_C++程序设计_第2章_从结构到类的演变
- 九度OJ 题目1534:数组中第K小的数字(二分解)
- intellig idea 快捷键
- jquery 动态创建的元素,绑定事件无效之解决方法
- 想玩 BGP 路由器么?用 CentOS 做一个
- 垂直对齐:vertical-align:super属性
- java应用性能分析
- mybatis查询如何返回List<;Map>;类型数据
- MySql 5.7.20版本免安装版配置过程
- 有趣的HTML5 CSS3效果
- Mahout使用(一)
- PCL超体聚类
- asp:Repeater数据源为空时处理方式
- 《Nginx高性能Web服务器》系列分享专栏
- Spring Boot中使用Spring-data-jpa
- 查看并解除Oracle锁