使用Spring2.0配置事件管理。
来源:互联网 发布:淘宝店铺免费模板网 编辑:程序博客网 时间:2024/06/05 20:02
1.使用Spring2.0配置事件管理,启动Tomcat报以下错误:
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in ServletContext resource [/WEB-INF/classes/applicationContext.xml]: Initialization of bean failed; nested exception is java.lang.IllegalArgumentException: Pointcut is not well-formed: expecting 'name pattern' at character position 32
execution(*com.shopping.dao.*.*(..))
^
Caused by: java.lang.IllegalArgumentException: Pointcut is not well-formed: expecting 'name pattern' at character position 32
execution(*com.shopping.dao.*.*(..))
解决办法如下:
<aop:config>
<aop:pointcut id="allManagerMethod" expression="execution(* com.mta.car.service.impl.*.*(..))" />
<aop:advisor advice-ref="txAdvice" pointcut-ref="allManagerMethod" />
</aop:config>
注意(* com....星号后面是有空格,如果没有空格,启动Tomcat时,就报上述错误!)
- 使用Spring2.0配置事件管理。
- 使用Spring2.0配置事件管理。
- spring2.0 aop配置
- spring2.0_aop配置
- spring2.0 事务配置
- 配置整合DWR3.0和Spring2.5使用annotation注解
- 使用Myeclipse9配置struts1.2+spring2.0+hibernate3.2注意事项
- Spring2.5整合Hibernate3.0中使用XML以tx来配置事务管理。
- Spring2.0技巧系列之简洁配置
- Spring2.0技巧系列之简洁配置
- spring2.0配置中的新标签应用
- spring2.0配置中的新标签应用
- spring2.0配置中的新标签应用
- spring2.0配置中的新标签应用
- Spring2.0技巧系列之简洁配置
- Spring2.0技巧系列之简洁配置
- Spring2.0技巧系列之简洁配置
- Spring2.0技巧系列之简洁配置
- expression="execution(*service..*.*(..))"
- 原始套接字的使用
- linux文件重命名命令
- CentOS下自动备份7天的mysql数据库
- Boost多线程编程
- 使用Spring2.0配置事件管理。
- 【Linux基础】面向连接的套接字通信(TCP)之使用实例
- centos上配置uwsgi
- 如何在linux下解压缩rar格式的文件压缩包
- Mysql数据库修复,Ibdata1文件删除数据恢复成功
- 大任务分割
- MFC 对话框 拖动 大小
- QT 的信号与槽机制介绍
- DCLK/HS/VS/DE信号介绍