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>

最新文章

  1. mybatis 使用记录(二) 动态拼接查询条件
  2. String、StringBuffer、StringBuilder的一些小经验……
  3. WisDom.Net 框架设计(四) 用户安全
  4. ll 详解
  5. 04737_C++程序设计_第2章_从结构到类的演变
  6. 九度OJ 题目1534:数组中第K小的数字(二分解)
  7. intellig idea 快捷键
  8. jquery 动态创建的元素,绑定事件无效之解决方法
  9. 想玩 BGP 路由器么?用 CentOS 做一个
  10. 垂直对齐:vertical-align:super属性
  11. java应用性能分析
  12. mybatis查询如何返回List&lt;Map&gt;类型数据
  13. MySql 5.7.20版本免安装版配置过程
  14. 有趣的HTML5 CSS3效果
  15. Mahout使用(一)
  16. PCL超体聚类
  17. asp:Repeater数据源为空时处理方式
  18. 《Nginx高性能Web服务器》系列分享专栏
  19. Spring Boot中使用Spring-data-jpa
  20. 查看并解除Oracle锁

热门文章

  1. LeetCode 167.两数之和(C++)
  2. 我的2015plan
  3. http method and status code
  4. GitKraken使用教程-基础部分(9)
  5. 批量删除QQ空间说说
  6. node Error: Could not locate the bindings file. Tried:解决
  7. C#让窗体在启动时直接隐藏
  8. js删除数组里指定的元素
  9. 1064. 计算斐波那契第n项 通项公式
  10. 浅谈移动优先的跨终端Web 解决方案