Spring 整合Hibernate 报错Pointcut is malformed: warning no match for this type name: com.ren.spring.hibe
2017-03-01 18:32
786 查看
今天Spring整合Hibernate时在Spring的配置文件中报错如下:
我配置切点的代码如下:
Pointcut is malformed: warning no match for this type name: com.ren.spring.hibernate.service
我配置切点的代码如下:
<aop:config> <aop:pointcut expression="execution(* com.ren.spring.hibernate.service.*(..))" id="poincut"/> <aop:advisor advice-ref="txAdvice" pointcut-ref="poincut"/> </aop:config>
出错原因: expression="execution(* com.ren.spring.hibernate.service.*(..))"表达式写错了,应该是:expression="execution(* com.ren.spring.hibernate.service.*.*(..))",第一个*含义是:代表所有类型的返回值,第二个*是代表com.ren.spring.hibernate.service包下的所有类,第三个是类下的所有方法,括号中两个点表示任意个形参。
相关文章推荐
- Spring AOP 开发中遇到问题:Caused by: java.lang.IllegalArgumentException: warning no match for this type name: com.xxx.collector.service.impl.XxxServiceImpl [Xlint:invalidAbsoluteTypeName]
- 错误: warning no match for this type name: com.zrm.service [Xlint:invalidAbsoluteTypeName]
- FAQ(35):java.lang.IllegalArgumentException: warning no match for this type name: com.smbms.pojo [Xli
- ARNING NO MATCH FOR THIS TYPE NAME XLINT:INVALIDABSOLUTETYPENAME
- spring3+struts2+hibernate3整合出现的问题,No mapping found for dependency [type=java.lang.String, name='str
- org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.oskyhang.gbd.service.UserService] found for dependency: expected at least 1 bean which qualifies as aut
- EntityType [TableName] has no key defined. Define the key for this EntityType
- sruts2.1整合spring3.0抛出异常: Status 404 - There is no Action mapped for namespace /jsp and action name
- SpringBoot 集成Kotlin : org.hibernate.InstantiationException: No default constructor for entity: : com.easy.kotlin.entity.People
- No mapping found for dependency [type=java.lang.String, name='struts.objectFactory.spring.autoWire.
- Spring整合hibernate No Session found for current thread
- Struts 2.x 与Spring4.x整合出现:No mapping found for dependency [type=java.lang.String, name='actionPackages...
- 使用Spring Cloud微服务框架进行多个微服务整合时出现No converter found for return value of type:xxx异常信息
- Spring Data JPA: No property name found for type ×××
- Spring 3 和 Hibernate4 整合时遇到的 No Session found for current thread !
- org.hibernate.MappingException: No Dialect mapping for JDBC type: -1
- EntityType 'UserInfo' has no key defined. Define the key for this EntityType.
- org.hibernate.AnnotationException: No identifier specified for entity: com.bjsxt.hibernate.Teacher
- Caused by: There is no result type defined for type 'json' mapped with name 'rebback'. Did you mean
- org.hibernate.MappingException: No Dialect mapping for JDBC type: -1