senazhang0332
2019-04-24 09:39SpringBoot整合AOP出错
#问题描述:
springboot切面引入报错,有大佬给看一下么?网上找不到答案
#相关代码:
##依赖
<!-- SpringBoot整合aop -->
org.springframework.boot
spring-boot-starter-aop
##切面
@Service
@Aspect
public class ExampleAspect {
@DeclareParents(value="com.seanzhang.manage.service.ExampleService+",defaultImpl=ExampleIntroductionImpl.class)
public static ExampleIntroduction introduction;
}
public interface ExampleIntroduction {
void introductionDemo();
}
@Service
public class ExampleIntroductionImpl implements ExampleIntroduction {
@Override
public void introductionDemo() {
}
}
#报错信息:
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration$EnableWebMvcConfiguration': Unsatisfied dependency expressed through method 'setConfigurers' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.data.web.config.SpringDataWebConfiguration': Unsatisfied dependency expressed through field 'pageableResolverCustomizer'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'pageableCustomizer' defined in class path resource [org/springframework/boot/autoconfigure/data/web/SpringDataWebAutoConfiguration.class]: Initialization of bean failed; nested exception is org.aspectj.weaver.reflect.ReflectionWorld$ReflectionWorldException: warning can't determine implemented interfaces of missing type org.springframework.boot.autoconfigure.data.web.SpringDataWebAutoConfiguration$$Lambda$402.2234027
- 点赞
- 回答
- 收藏
- 复制链接分享
1条回答
为你推荐
- springAOP通过注解扫描,controller层生效,service层不生效
- spring
- java
- 3个回答
- spring3 中aop实现问题
- aop
- 0个回答
- springboot+druid配置无效
- druid
- spring
- 8个回答
- springboot项目下,提示shiro与aop冲突
- spring
- shiro
- aop
- 3个回答
- java中aop日志切入到某个包中的所有方法,为什么有的方法没有执行日志?
- java
- aop
- 3个回答