senazhang0332 2019-04-24 09:39 采纳率: 50%
浏览 2581

SpringBoot整合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条回答 默认 最新

  • 黑_虫 2020-03-11 11:56
    关注

    如果我的回答未能解决您的问题,请不要对我进行攻击,我还是个菜鸟,关于这个问题我也遇到了,但是经过谷歌一番后终于可以让springboot启动,并显示预期结果,但是不知道其中的原理,请把 + 去掉试试

    评论

报告相同问题?

悬赏问题

  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog