使用Spring2.0配置事件管理。
来源:互联网 发布:cae软件下载 编辑:程序博客网 时间:2024/05/16 11:27
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技巧系列之简洁配置
- 'operator <<' is ambiguous
- int 和 String 互相转换的多种方法
- mysql数据据存储引擎InnoDB和MyISAM的优势及区别
- struts2中格式化输出数字和日期的方法
- [转]告别程序员生涯,一点感慨,与诸君共勉
- 使用Spring2.0配置事件管理。
- struts2 Interceptor(拦截器)中获取HTTP 参数的方法
- 查看Ubuntu版本信息
- [转]程序人生的十字路口
- POJ 3680 Intervals
- Struts2中自定义拦截器导致Action注入参数丢失
- 控件CComboBox之GetCurSel();
- 计算机语言的本质?
- 冒泡排序和选择排序