Caused by: java.lang.IllegalArgumentException: error at ::0 can’t find referenced pointcut hystrixCommandAnnotationPointcut异常
问题描述:
"C:\Program Files\Java\jdk-10\bin\java" -XX:TieredStopAtLevel=1 -noverify -Dspring.output.ansi.enabled=always -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=54704 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.rmi.server.hostname=localhost -Dspring.liveBeansView.mbeanDomain -Dspring.application.admin.enabled=true -javaagent:D:\IDE\IDEA\ideaIU-2018.1.win\lib\idea_rt.jar=54705:D:\IDE\IDEA\ideaIU-2018.1.win\bin -Dfile.encoding=UTF-8 -classpath D:\IDE\IDEA\Workspace\parent\service-ribbon\target\classes;D:\IDE\Maven\Repository\org\springframework\cloud\spring-cloud-starter-eureka-server\1.2.1.RELEASE\spring-cloud-starter-eureka-server-1.2.1.RELEASE.jar;D:\IDE\Maven\Repository\org\springframework\cloud\spring-cloud-starter\1.1.4.RELEASE\spring-cloud-starter-1.1.4.RELEASE.jar;D:\IDE\Maven\Repository\org\springframework\cloud\spring-cloud-context\1.1.4.RELEASE\spring-cloud-context-1.1.4.RELEASE.jar;D:\IDE\Maven\Repository\org\springframework\security\spring-security-rsa\1.0.3.RELEASE\spring-security-rsa-1.0.3.RELEASE.jar;D:\IDE\Maven\Repository\org\bouncycastle\bcpkix-jdk15on\1.55\bcpkix-jdk15on-1.55.jar;D:\IDE\Maven\Repository\org\bouncycastle\bcprov-jdk15on\1.55\bcprov-jdk15on-1.55.jar;D:\IDE\Maven\Repository\org\springframework\cloud\spring-cloud-netflix-eureka-server\1.2.1.RELEASE\spring-cloud-netflix-eureka-server-1.2.1.RELEASE.jar;D:\IDE\Maven\Repository\org\springframework\boot\spring-boot-starter-actuator\1.4.1.RELEASE\spring-boot-starter-actuator-1.4.1.RELEASE.jar;D:\IDE\Maven\Repository\org\springframework\boot\spring-boot-actuator\1.4.1.RELEASE\spring-boot-actuator-1.4.1.RELEASE.jar;D:\IDE\Maven\Repository\org\springframework\boot\spring-boot-starter-freemarker\1.4.1.RELEASE\spring-boot-starter-freemarker-1.4.1.RELEASE.jar;D:\IDE\Maven\Repository\org\freemarker\freemarker\2.3.25-incubating\freemarker-2.3.25-incubating.jar;D:\IDE\Maven\Repository\org\springframework\spring-context-support\4.3.3.RELEASE\spring-context-support-4.3.3.RELEASE.jar;D:\IDE\Maven\Repository\org\springframework\cloud\spring-cloud-netflix-eureka-client\1.2.1.RELEASE\spring-cloud-netflix-eureka-client-1.2.1.RELEASE.jar;D:\IDE\Maven\Repository\com\netflix\eureka\eureka-client\1.4.11\eureka-client-1.4.11.jar;D:\IDE\Maven\Repository\org\codehaus\jettison\jettison\1.3.7\jettison-1.3.7.jar;D:\IDE\Maven\Repository\stax\stax-api\1.0.1\stax-api-1.0.1.jar;D:\IDE\Maven\Repository\com\netflix\netflix-commons\netflix-eventbus\0.3.0\netflix-eventbus-0.3.0.jar;D:\IDE\Maven\Repository\com\netflix\netflix-commons\netflix-infix\0.3.0\netflix-infix-0.3.0.jar;D:\IDE\Maven\Repository\commons-jxpath\commons-jxpath\1.3\commons-jxpath-1.3.jar;D:\IDE\Maven\Repository\joda-time\joda-time\2.9.4\joda-time-2.9.4.jar;D:\IDE\Maven\Repository\org\antlr\antlr-runtime\3.4\antlr-runtime-3.4.jar;D:\IDE\Maven\Repository\org\antlr\stringtemplate\3.2.1\stringtemplate-3.2.1.jar;D:\IDE\Maven\Repository\antlr\antlr\2.7.7\antlr-2.7.7.jar;D:\IDE\Maven\Repository\com\google\code\gson\gson\2.7\gson-2.7.jar;D:\IDE\Maven\Repository\org\apache\commons\commons-math\2.2\commons-math-2.2.jar;D:\IDE\Maven\Repository\javax\ws\rs\jsr311-api\1.1.1\jsr311-api-1.1.1.jar;D:\IDE\Maven\Repository\com\sun\jersey\jersey-core\1.19.1\jersey-core-1.19.1.jar;D:\IDE\Maven\Repository\com\google\inject\guice\4.0\guice-4.0.jar;D:\IDE\Maven\Repository\aopalliance\aopalliance\1.0\aopalliance-1.0.jar;D:\IDE\Maven\Repository\com\netflix\governator\governator-api\1.12.10\governator-api-1.12.10.jar;D:\IDE\Maven\Repository\com\sun\jersey\jersey-servlet\1.19.1\jersey-servlet-1.19.1.jar;D:\IDE\Maven\Repository\com\sun\jersey\jersey-server\1.19.1\jersey-server-1.19.1.jar;D:\IDE\Maven\Repository\com\netflix\eureka\eureka-core\1.4.11\eureka-core-1.4.11.jar;D:\IDE\Maven\Repository\com\netflix\governator\governator\1.12.10\governator-1.12.10.jar;D:\IDE\Maven\Repository\com\netflix\governator\governator-core\1.12.10\governator-core-1.12.10.jar;D:\IDE\Maven\Repository\com\google\inject\extensions\guice-multibindings\4.0\guice-multibindings-4.0.jar;D:\IDE\Maven\Repository\com\google\inject\extensions\guice-grapher\4.0\guice-grapher-4.0.jar;D:\IDE\Maven\Repository\com\google\inject\extensions\guice-assistedinject\4.0\guice-assistedinject-4.0.jar;D:\IDE\Maven\Repository\org\codehaus\woodstox\woodstox-core-asl\4.4.1\woodstox-core-asl-4.4.1.jar;D:\IDE\Maven\Repository\javax\xml\stream\stax-api\1.0-2\stax-api-1.0-2.jar;D:\IDE\Maven\Repository\com\netflix\archaius\archaius-core\0.7.4\archaius-core-0.7.4.jar;D:\IDE\Maven\Repository\com\google\code\findbugs\jsr305\3.0.1\jsr305-3.0.1.jar;D:\IDE\Maven\Repository\javax\inject\javax.inject\1\javax.inject-1.jar;D:\IDE\Maven\Repository\com\fasterxml\jackson\dataformat\jackson-dataformat-xml\2.8.3\jackson-dataformat-xml-2.8.3.jar;D:\IDE\Maven\Repository\com\fasterxml\jackson\module\jackson-module-jaxb-annotations\2.8.3\jackson-module-jaxb-annotations-2.8.3.jar;D:\IDE\Maven\Repository\org\codehaus\woodstox\stax2-api\3.1.4\stax2-api-3.1.4.jar;D:\IDE\Maven\Repository\com\fasterxml\woodstox\woodstox-core\5.0.2\woodstox-core-5.0.2.jar;D:\IDE\Maven\Repository\com\thoughtworks\xstream\xstream\1.4.9\xstream-1.4.9.jar;D:\IDE\Maven\Repository\xmlpull\xmlpull\1.1.3.1\xmlpull-1.1.3.1.jar;D:\IDE\Maven\Repository\xpp3\xpp3_min\1.1.4c\xpp3_min-1.1.4c.jar;D:\IDE\Maven\Repository\org\springframework\cloud\spring-cloud-starter-archaius\1.2.1.RELEASE\spring-cloud-starter-archaius-1.2.1.RELEASE.jar;D:\IDE\Maven\Repository\commons-configuration\commons-configuration\1.8\commons-configuration-1.8.jar;D:\IDE\Maven\Repository\com\fasterxml\jackson\core\jackson-annotations\2.8.3\jackson-annotations-2.8.3.jar;D:\IDE\Maven\Repository\com\fasterxml\jackson\core\jackson-core\2.8.3\jackson-core-2.8.3.jar;D:\IDE\Maven\Repository\com\google\guava\guava\18.0\guava-18.0.jar;D:\IDE\Maven\Repository\com\netflix\ribbon\ribbon-eureka\2.2.0\ribbon-eureka-2.2.0.jar;D:\IDE\Maven\Repository\org\slf4j\slf4j-api\1.7.21\slf4j-api-1.7.21.jar;D:\IDE\Maven\Repository\org\springframework\cloud\spring-cloud-starter-ribbon\1.2.1.RELEASE\spring-cloud-starter-ribbon-1.2.1.RELEASE.jar;D:\IDE\Maven\Repository\org\springframework\cloud\spring-cloud-netflix-core\1.2.1.RELEASE\spring-cloud-netflix-core-1.2.1.RELEASE.jar;D:\IDE\Maven\Repository\org\springframework\boot\spring-boot\1.4.1.RELEASE\spring-boot-1.4.1.RELEASE.jar;D:\IDE\Maven\Repository\org\springframework\boot\spring-boot-autoconfigure\1.4.1.RELEASE\spring-boot-autoconfigure-1.4.1.RELEASE.jar;D:\IDE\Maven\Repository\com\netflix\ribbon\ribbon\2.2.0\ribbon-2.2.0.jar;D:\IDE\Maven\Repository\com\netflix\ribbon\ribbon-transport\2.2.0\ribbon-transport-2.2.0.jar;D:\IDE\Maven\Repository\io\reactivex\rxnetty-contexts\0.4.9\rxnetty-contexts-0.4.9.jar;D:\IDE\Maven\Repository\io\reactivex\rxnetty-servo\0.4.9\rxnetty-servo-0.4.9.jar;D:\IDE\Maven\Repository\io\reactivex\rxnetty\0.4.9\rxnetty-0.4.9.jar;D:\IDE\Maven\Repository\io\netty\netty-codec-http\4.0.27.Final\netty-codec-http-4.0.27.Final.jar;D:\IDE\Maven\Repository\io\netty\netty-codec\4.0.27.Final\netty-codec-4.0.27.Final.jar;D:\IDE\Maven\Repository\io\netty\netty-handler\4.0.27.Final\netty-handler-4.0.27.Final.jar;D:\IDE\Maven\Repository\io\netty\netty-transport-native-epoll\4.0.27.Final\netty-transport-native-epoll-4.0.27.Final.jar;D:\IDE\Maven\Repository\io\netty\netty-common\4.0.27.Final\netty-common-4.0.27.Final.jar;D:\IDE\Maven\Repository\io\netty\netty-buffer\4.0.27.Final\netty-buffer-4.0.27.Final.jar;D:\IDE\Maven\Repository\io\netty\netty-transport\4.0.27.Final\netty-transport-4.0.27.Final.jar;D:\IDE\Maven\Repository\com\netflix\ribbon\ribbon-core\2.2.0\ribbon-core-2.2.0.jar;D:\IDE\Maven\Repository\commons-lang\commons-lang\2.6\commons-lang-2.6.jar;D:\IDE\Maven\Repository\com\netflix\ribbon\ribbon-httpclient\2.2.0\ribbon-httpclient-2.2.0.jar;D:\IDE\Maven\Repository\commons-collections\commons-collections\3.2.2\commons-collections-3.2.2.jar;D:\IDE\Maven\Repository\org\apache\httpcomponents\httpclient\4.5.2\httpclient-4.5.2.jar;D:\IDE\Maven\Repository\org\apache\httpcomponents\httpcore\4.4.5\httpcore-4.4.5.jar;D:\IDE\Maven\Repository\commons-codec\commons-codec\1.10\commons-codec-1.10.jar;D:\IDE\Maven\Repository\com\sun\jersey\jersey-client\1.19.1\jersey-client-1.19.1.jar;D:\IDE\Maven\Repository\com\sun\jersey\contribs\jersey-apache-client4\1.19.1\jersey-apache-client4-1.19.1.jar;D:\IDE\Maven\Repository\com\netflix\servo\servo-core\0.10.1\servo-core-0.10.1.jar;D:\IDE\Maven\Repository\com\netflix\servo\servo-internal\0.10.1\servo-internal-0.10.1.jar;D:\IDE\Maven\Repository\com\netflix\netflix-commons\netflix-commons-util\0.1.1\netflix-commons-util-0.1.1.jar;D:\IDE\Maven\Repository\com\netflix\ribbon\ribbon-loadbalancer\2.2.0\ribbon-loadbalancer-2.2.0.jar;D:\IDE\Maven\Repository\com\netflix\netflix-commons\netflix-statistics\0.1.1\netflix-statistics-0.1.1.jar;D:\IDE\Maven\Repository\io\reactivex\rxjava\1.1.10\rxjava-1.1.10.jar;D:\IDE\Maven\Repository\org\springframework\cloud\spring-cloud-starter-feign\1.2.1.RELEASE\spring-cloud-starter-feign-1.2.1.RELEASE.jar;D:\IDE\Maven\Repository\org\springframework\spring-web\4.3.3.RELEASE\spring-web-4.3.3.RELEASE.jar;D:\IDE\Maven\Repository\org\springframework\spring-aop\4.3.3.RELEASE\spring-aop-4.3.3.RELEASE.jar;D:\IDE\Maven\Repository\org\springframework\spring-beans\4.3.3.RELEASE\spring-beans-4.3.3.RELEASE.jar;D:\IDE\Maven\Repository\org\springframework\spring-context\4.3.3.RELEASE\spring-context-4.3.3.RELEASE.jar;D:\IDE\Maven\Repository\org\springframework\cloud\spring-cloud-commons\1.1.4.RELEASE\spring-cloud-commons-1.1.4.RELEASE.jar;D:\IDE\Maven\Repository\org\springframework\security\spring-security-crypto\4.1.3.RELEASE\spring-security-crypto-4.1.3.RELEASE.jar;D:\IDE\Maven\Repository\io\github\openfeign\feign-core\9.3.1\feign-core-9.3.1.jar;D:\IDE\Maven\Repository\org\jvnet\animal-sniffer-annotation\1.0\animal-sniffer-annotation-1.0.jar;D:\IDE\Maven\Repository\io\github\openfeign\feign-slf4j\9.3.1\feign-slf4j-9.3.1.jar;D:\IDE\Maven\Repository\io\github\openfeign\feign-hystrix\9.3.1\feign-hystrix-9.3.1.jar;D:\IDE\Maven\Repository\org\springframework\cloud\spring-cloud-starter-hystrix\1.2.1.RELEASE\spring-cloud-starter-hystrix-1.2.1.RELEASE.jar;D:\IDE\Maven\Repository\com\netflix\hystrix\hystrix-core\1.5.6\hystrix-core-1.5.6.jar;D:\IDE\Maven\Repository\org\hdrhistogram\HdrHistogram\2.1.9\HdrHistogram-2.1.9.jar;D:\IDE\Maven\Repository\com\netflix\hystrix\hystrix-metrics-event-stream\1.5.6\hystrix-metrics-event-stream-1.5.6.jar;D:\IDE\Maven\Repository\com\netflix\hystrix\hystrix-serialization\1.5.6\hystrix-serialization-1.5.6.jar;D:\IDE\Maven\Repository\com\fasterxml\jackson\module\jackson-module-afterburner\2.7.5\jackson-module-afterburner-2.7.5.jar;D:\IDE\Maven\Repository\com\fasterxml\jackson\dataformat\jackson-dataformat-cbor\2.8.3\jackson-dataformat-cbor-2.8.3.jar;D:\IDE\Maven\Repository\com\netflix\hystrix\hystrix-javanica\1.5.6\hystrix-javanica-1.5.6.jar;D:\IDE\Maven\Repository\org\apache\commons\commons-lang3\3.1\commons-lang3-3.1.jar;D:\IDE\Maven\Repository\org\ow2\asm\asm\5.0.4\asm-5.0.4.jar;D:\IDE\Maven\Repository\org\aspectj\aspectjweaver\1.8.9\aspectjweaver-1.8.9.jar;D:\IDE\Maven\Repository\org\springframework\boot\spring-boot-starter-web\1.4.1.RELEASE\spring-boot-starter-web-1.4.1.RELEASE.jar;D:\IDE\Maven\Repository\org\springframework\boot\spring-boot-starter\1.4.1.RELEASE\spring-boot-starter-1.4.1.RELEASE.jar;D:\IDE\Maven\Repository\org\springframework\boot\spring-boot-starter-logging\1.4.1.RELEASE\spring-boot-starter-logging-1.4.1.RELEASE.jar;D:\IDE\Maven\Repository\ch\qos\logback\logback-classic\1.1.7\logback-classic-1.1.7.jar;D:\IDE\Maven\Repository\ch\qos\logback\logback-core\1.1.7\logback-core-1.1.7.jar;D:\IDE\Maven\Repository\org\slf4j\jcl-over-slf4j\1.7.21\jcl-over-slf4j-1.7.21.jar;D:\IDE\Maven\Repository\org\slf4j\jul-to-slf4j\1.7.21\jul-to-slf4j-1.7.21.jar;D:\IDE\Maven\Repository\org\slf4j\log4j-over-slf4j\1.7.21\log4j-over-slf4j-1.7.21.jar;D:\IDE\Maven\Repository\org\yaml\snakeyaml\1.17\snakeyaml-1.17.jar;D:\IDE\Maven\Repository\org\springframework\boot\spring-boot-starter-tomcat\1.4.1.RELEASE\spring-boot-starter-tomcat-1.4.1.RELEASE.jar;D:\IDE\Maven\Repository\org\apache\tomcat\embed\tomcat-embed-core\8.5.5\tomcat-embed-core-8.5.5.jar;D:\IDE\Maven\Repository\org\apache\tomcat\embed\tomcat-embed-el\8.5.5\tomcat-embed-el-8.5.5.jar;D:\IDE\Maven\Repository\org\apache\tomcat\embed\tomcat-embed-websocket\8.5.5\tomcat-embed-websocket-8.5.5.jar;D:\IDE\Maven\Repository\org\hibernate\hibernate-validator\5.2.4.Final\hibernate-validator-5.2.4.Final.jar;D:\IDE\Maven\Repository\javax\validation\validation-api\1.1.0.Final\validation-api-1.1.0.Final.jar;D:\IDE\Maven\Repository\org\jboss\logging\jboss-logging\3.3.0.Final\jboss-logging-3.3.0.Final.jar;D:\IDE\Maven\Repository\com\fasterxml\classmate\1.3.1\classmate-1.3.1.jar;D:\IDE\Maven\Repository\com\fasterxml\jackson\core\jackson-databind\2.8.3\jackson-databind-2.8.3.jar;D:\IDE\Maven\Repository\org\springframework\spring-webmvc\4.3.3.RELEASE\spring-webmvc-4.3.3.RELEASE.jar;D:\IDE\Maven\Repository\org\springframework\spring-expression\4.3.3.RELEASE\spring-expression-4.3.3.RELEASE.jar;D:\IDE\Maven\Repository\org\springframework\spring-core\4.3.3.RELEASE\spring-core-4.3.3.RELEASE.jar;D:\IDE\Maven\Repository\org\aspectj\aspectjrt\1.9.0\aspectjrt-1.9.0.jar;D:\IDE\Maven\Repository\javax\xml\bind\jaxb-api\2.3.0\jaxb-api-2.3.0.jar;D:\IDE\Maven\Repository\com\sun\xml\bind\jaxb-impl\2.3.0\jaxb-impl-2.3.0.jar;D:\IDE\Maven\Repository\com\sun\xml\bind\jaxb-core\2.3.0\jaxb-core-2.3.0.jar;D:\IDE\Maven\Repository\javax\activation\activation\1.1.1\activation-1.1.1.jar top.simba1949.App 2018-04-11 19:56:25.251 INFO 3280 --- [ main] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@60a2630a: startup date [Wed Apr 11 19:56:25 CST 2018]; root of context hierarchy WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by org.springframework.cglib.core.ReflectUtils$1 (file:/D:/IDE/Maven/Repository/org/springframework/spring-core/4.3.3.RELEASE/spring-core-4.3.3.RELEASE.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) WARNING: Please consider reporting this to the maintainers of org.springframework.cglib.core.ReflectUtils$1 WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release 2018-04-11 19:56:25.444 INFO 3280 --- [ main] f.a.AutowiredAnnotationBeanPostProcessor : JSR-330 'javax.inject.Inject' annotation found and supported for autowiring 2018-04-11 19:56:25.471 INFO 3280 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'configurationPropertiesRebinderAutoConfiguration' of type [class org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$99881298] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v1.4.1.RELEASE) 2018-04-11 19:56:25.877 INFO 3280 --- [ main] top.simba1949.App : No active profile set, falling back to default profiles: default 2018-04-11 19:56:25.891 INFO 3280 --- [ main] ationConfigEmbeddedWebApplicationContext : Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@49798e84: startup date [Wed Apr 11 19:56:25 CST 2018]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@60a2630a 2018-04-11 19:56:26.434 INFO 3280 --- [ main] o.s.b.f.s.DefaultListableBeanFactory : Overriding bean definition for bean 'hystrixFeature' with a different definition: replacing [Root bean: class [null]; scope=; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=org.springframework.cloud.netflix.hystrix.HystrixCircuitBreakerConfiguration$HystrixWebConfiguration; factoryMethodName=hystrixFeature; initMethodName=null; destroyMethodName=(inferred); defined in class path resource [org/springframework/cloud/netflix/hystrix/HystrixCircuitBreakerConfiguration$HystrixWebConfiguration.class]] with [Root bean: class [null]; scope=; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=org.springframework.cloud.netflix.hystrix.HystrixCircuitBreakerConfiguration; factoryMethodName=hystrixFeature; initMethodName=null; destroyMethodName=(inferred); defined in class path resource [org/springframework/cloud/netflix/hystrix/HystrixCircuitBreakerConfiguration.class]] 2018-04-11 19:56:26.591 WARN 3280 --- [ main] o.s.c.a.ConfigurationClassPostProcessor : Cannot enhance @Configuration bean definition 'refreshScope' since its singleton instance has been created too early. The typical cause is a non-static @Bean method with a BeanDefinitionRegistryPostProcessor return type: Consider declaring such methods as 'static'. 2018-04-11 19:56:26.699 INFO 3280 --- [ main] o.s.cloud.context.scope.GenericScope : BeanFactory id=11cb1825-cf13-302d-9d32-a824d7bbaaa5 2018-04-11 19:56:26.708 INFO 3280 --- [ main] f.a.AutowiredAnnotationBeanPostProcessor : JSR-330 'javax.inject.Inject' annotation found and supported for autowiring 2018-04-11 19:56:26.804 WARN 3280 --- [ main] ationConfigEmbeddedWebApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'embeddedServletContainerCustomizerBeanPostProcessor': Initialization of bean failed; nested exception is java.lang.IllegalArgumentException: error at ::0 can't find referenced pointcut hystrixCommandAnnotationPointcut 2018-04-11 19:56:26.812 ERROR 3280 --- [ main] o.s.boot.SpringApplication : Application startup failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'embeddedServletContainerCustomizerBeanPostProcessor': Initialization of bean failed; nested exception is java.lang.IllegalArgumentException: error at ::0 can't find referenced pointcut hystrixCommandAnnotationPointcut at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553) ~[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482) ~[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) ~[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) ~[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) ~[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.context.support.PostProcessorRegistrationDelegate.registerBeanPostProcessors(PostProcessorRegistrationDelegate.java:240) ~[spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:697) ~[spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:526) ~[spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122) ~[spring-boot-1.4.1.RELEASE.jar:1.4.1.RELEASE] at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:761) [spring-boot-1.4.1.RELEASE.jar:1.4.1.RELEASE] at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:371) [spring-boot-1.4.1.RELEASE.jar:1.4.1.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:315) [spring-boot-1.4.1.RELEASE.jar:1.4.1.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1186) [spring-boot-1.4.1.RELEASE.jar:1.4.1.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1175) [spring-boot-1.4.1.RELEASE.jar:1.4.1.RELEASE] at top.simba1949.App.main(App.java:23) [classes/:na] Caused by: java.lang.IllegalArgumentException: error at ::0 can't find referenced pointcut hystrixCommandAnnotationPointcut at org.aspectj.weaver.tools.PointcutParser.parsePointcutExpression(PointcutParser.java:301) ~[aspectjweaver-1.8.9.jar:1.8.9] at org.springframework.aop.aspectj.AspectJExpressionPointcut.buildPointcutExpression(AspectJExpressionPointcut.java:207) ~[spring-aop-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.aop.aspectj.AspectJExpressionPointcut.checkReadyToMatch(AspectJExpressionPointcut.java:193) ~[spring-aop-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.aop.aspectj.AspectJExpressionPointcut.getClassFilter(AspectJExpressionPointcut.java:170) ~[spring-aop-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.aop.support.AopUtils.canApply(AopUtils.java:220) ~[spring-aop-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.aop.support.AopUtils.canApply(AopUtils.java:279) ~[spring-aop-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.aop.support.AopUtils.findAdvisorsThatCanApply(AopUtils.java:311) ~[spring-aop-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findAdvisorsThatCanApply(AbstractAdvisorAutoProxyCreator.java:118) ~[spring-aop-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findEligibleAdvisors(AbstractAdvisorAutoProxyCreator.java:88) ~[spring-aop-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.getAdvicesAndAdvisorsForBean(AbstractAdvisorAutoProxyCreator.java:69) ~[spring-aop-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.wrapIfNecessary(AbstractAutoProxyCreator.java:347) ~[spring-aop-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessAfterInitialization(AbstractAutoProxyCreator.java:299) ~[spring-aop-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:422) ~[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1588) ~[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545) ~[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE] ... 15 common frames omitted Process finished with exit code 1
问题分析:
由于 spring 和 jdk 之间的 jar 包冲突
解决方案:
aspectjrt 的maven地址:http://mvnrepository.com/artifact/org.aspectj/aspectjrt
aspectjweaver 的maven地址:http://mvnrepository.com/artifact/org.aspectj/aspectjweaver/1.9.0
添加 aspectjrt 和 aspectjweaver 最新版 jar 包即可
<dependency> <groupId>org.aspectj</groupId> <artifactId>aspectjrt</artifactId> <version>1.9.0</version> </dependency> <dependency> <groupId>org.aspectj</groupId> <artifactId>aspectjweaver</artifactId> <version>1.9.0</version>