spring Exception

来源:互联网 发布:数据库系统概论 课件 编辑:程序博客网 时间:2024/06/18 13:58

Cannot proxy target class because CGLIB2 is not available. Add CGLIB to the class path or specify proxy interfaces.

因为这个类没有实现接口,之所以不能用jdk提供的代理,所以我们要加入Spring的CGLIB2库的包,他能产生代理。具体怎么产生就不知道了。

 

 

 Cannot create inner bean '(inner bean)' of type [org.springframework.aop.aspectj.AspectJMethodBeforeAdvice] while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Cannot create inner bean '(inner bean)' of type [org.springframework.aop.config.MethodLocatingFactoryBean] while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Initialization of bean failed; nested exception is java.lang.IllegalArgumentException: Unable to locate method [before] on bean [logInterceptor]