Error processing condition on

时间:2025-03-20 07:14:57

spring-boot启动时报如下异常
: Error processing condition on
    at (:59) ~[spring-boot-autoconfigure-2.1.:2.1.]
    at (:108) ~[spring-context-5.1.:5.1.]
    at (:181) ~[spring-context-5.1.:5.1.]
    at (:141) ~[spring-context-5.1.:5.1.]
    at (:117) ~[spring-context-5.1.:5.1.]
    at (:327) ~[spring-context-5.1.:5.1.]
    at (:232) ~[spring-context-5.1.:5.1.]
    at (:275) ~[spring-context-5.1.:5.1.]
    at (:95) ~[spring-context-5.1.:5.1.]
    at (:705) ~[spring-context-5.1.:5.1.]
    at (:531) ~[spring-context-5.1.:5.1.]
    at (:140) ~[spring-boot-2.1.:2.1.]
    at (:742) [spring-boot-2.1.:2.1.]
    at (:389) [spring-boot-2.1.:2.1.]
    at (:311) [spring-boot-2.1.:2.1.]
    at (:1213) [spring-boot-2.1.:2.1.]
    at (:1202) [spring-boot-2.1.:2.1.]
    at (:13) [classes/:na]
Caused by: : Failed to introspect Class [] from ClassLoader [$AppClassLoader@18b4aac2]
    at (:507) ~[spring-core-5.1.:5.1.]
    at (:404) ~[spring-core-5.1.:5.1.]
    at (:389) ~[spring-core-5.1.:5.1.]
    at (:447) ~[spring-core-5.1.:5.1.]
    at (:1660) ~[na:1.8.0_171]
    at (:738) ~[spring-beans-5.1.:5.1.]
    at (:679) ~[spring-beans-5.1.:5.1.]
    at (:647) ~[spring-beans-5.1.:5.1.]
    at (:1518) ~[spring-beans-5.1.:5.1.]
    at (:1023) ~[spring-beans-5.1.:5.1.]
    at (:190) ~[spring-boot-autoconfigure-2.1.:2.1.]
    at (:157) ~[spring-boot-autoconfigure-2.1.:2.1.]
    at (:150) ~[spring-boot-autoconfigure-2.1.:2.1.]
    at (:138) ~[spring-boot-autoconfigure-2.1.:2.1.]
    at (:116) ~[na:1.8.0_171]
    at (:133) ~[spring-boot-autoconfigure-2.1.:2.1.]
    at (:97) ~[spring-boot-autoconfigure-2.1.:2.1.]
    at (:268) ~[spring-boot-autoconfigure-2.1.:2.1.]
    at (:261) ~[spring-boot-autoconfigure-2.1.:2.1.]
    at (:250) ~[spring-boot-autoconfigure-2.1.:2.1.]
    at (:170) ~[spring-boot-autoconfigure-2.1.:2.1.]
    at (:145) ~[spring-boot-autoconfigure-2.1.:2.1.]
    at (:46) ~[spring-boot-autoconfigure-2.1.:2.1.]
    ... 17 common frames omitted
Caused by: : org/springframework/web/filter/FormContentFilter
    at .defineClass1(Native Method) ~[na:1.8.0_171]
    at (:763) ~[na:1.8.0_171]
    at (:142) ~[na:1.8.0_171]
    at (:467) ~[na:1.8.0_171]
    at $100(:73) ~[na:1.8.0_171]
    at $(:368) ~[na:1.8.0_171]
    at $(:362) ~[na:1.8.0_171]
    at (Native Method) ~[na:1.8.0_171]
    at (:361) ~[na:1.8.0_171]
    at (:424) ~[na:1.8.0_171]
    at $(:349) ~[na:1.8.0_171]
    at (:357) ~[na:1.8.0_171]
    at .getDeclaredMethods0(Native Method) ~[na:1.8.0_171]
    at (:2701) ~[na:1.8.0_171]
    at (:1975) ~[na:1.8.0_171]
    at (:489) ~[spring-core-5.1.:5.1.]
    ... 39 common frames omitted
Caused by: :
    at (:381) ~[na:1.8.0_171]
    at (:424) ~[na:1.8.0_171]
    at $(:349) ~[na:1.8.0_171]
    at (:357) ~[na:1.8.0_171]
    ... 55 common frames omitted

2019-07-12 10:39:50.264  WARN 61498 --- [           main]               : Unable to close ApplicationContext

: Failed to introspect Class [] from ClassLoader [$AppClassLoader@18b4aac2]
    at (:507) ~[spring-core-5.1.:5.1.]
    at (:404) ~[spring-core-5.1.:5.1.]
    at (:389) ~[spring-core-5.1.:5.1.]
    at (:447) ~[spring-core-5.1.:5.1.]
    at (:1660) ~[na:1.8.0_171]
    at (:738) ~[spring-beans-5.1.:5.1.]
    at (:679) ~[spring-beans-5.1.:5.1.]
    at (:647) ~[spring-beans-5.1.:5.1.]
    at (:1518) ~[spring-beans-5.1.:5.1.]
    at (:511) ~[spring-beans-5.1.:5.1.]
    at (:481) ~[spring-beans-5.1.:5.1.]
    at (:602) ~[spring-beans-5.1.:5.1.]
    at (:594) ~[spring-beans-5.1.:5.1.]
    at (:1226) ~[spring-context-5.1.:5.1.]
    at (:864) [spring-boot-2.1.:2.1.]
    at (:852) [spring-boot-2.1.:2.1.]
    at (:839) [spring-boot-2.1.:2.1.]
    at (:790) [spring-boot-2.1.:2.1.]
    at (:321) [spring-boot-2.1.:2.1.]
    at (:1213) [spring-boot-2.1.:2.1.]
    at (:1202) [spring-boot-2.1.:2.1.]
    at (:13) [classes/:na]
Caused by: : org/springframework/web/filter/FormContentFilter
    at .defineClass1(Native Method) ~[na:1.8.0_171]
    at (:763) ~[na:1.8.0_171]
    at (:142) ~[na:1.8.0_171]
    at (:467) ~[na:1.8.0_171]
    at $100(:73) ~[na:1.8.0_171]
    at $(:368) ~[na:1.8.0_171]
    at $(:362) ~[na:1.8.0_171]
    at (Native Method) ~[na:1.8.0_171]
    at (:361) ~[na:1.8.0_171]
    at (:424) ~[na:1.8.0_171]
    at $(:349) ~[na:1.8.0_171]
    at (:357) ~[na:1.8.0_171]
    at .getDeclaredMethods0(Native Method) ~[na:1.8.0_171]
    at (:2701) ~[na:1.8.0_171]
    at (:1975) ~[na:1.8.0_171]
    at (:489) ~[spring-core-5.1.:5.1.]
    ... 21 common frames omitted
Caused by: :
    at (:381) ~[na:1.8.0_171]
    at (:424) ~[na:1.8.0_171]
    at $(:349) ~[na:1.8.0_171]
    at (:357) ~[na:1.8.0_171]
    ... 37 common frames omitted

 

 

解决方式:去掉一些包引用

<dependency>
   <groupId></groupId>
   <artifactId>spring-web</artifactId>
   <version>5.0.</version>
</dependency>