报错:Springboot -配置Swagger2,第一次出现这个问题,可以看看

时间:2025-04-01 08:52:51
: Failed to process import candidates for configuration class []; nested exception is : class path resource [springfox/documentation/swagger/configuration/] cannot be opened because it does not exist
at (:609) ~[spring-context-5.2.:5.2.]
at (:310) ~[spring-context-5.2.:5.2.]
at (:249) ~[spring-context-5.2.:5.2.]
at (:198) ~[spring-context-5.2.:5.2.]
at (:303) ~[spring-context-5.2.:5.2.]
at (:249) ~[spring-context-5.2.:5.2.]
at (:206) ~[spring-context-5.2.:5.2.]
at (:174) ~[spring-context-5.2.:5.2.]
at (:319) ~[spring-context-5.2.:5.2.]
at (:236) ~[spring-context-5.2.:5.2.]
at (:275) ~[spring-context-5.2.:5.2.]
at (:95) ~[spring-context-5.2.:5.2.]
at (:706) ~[spring-context-5.2.:5.2.]
at (:532) ~[spring-context-5.2.:5.2.]
at (:141) ~[spring-boot-2.2.:2.2.]
at (:747) [spring-boot-2.2.:2.2.]
at (:397) [spring-boot-2.2.:2.2.]
at (:315) [spring-boot-2.2.:2.2.]
at (:1226) [spring-boot-2.2.:2.2.]
at (:1215) [spring-boot-2.2.:2.2.]
at (:13) [classes/:na]
Caused by: : class path resource [springfox/documentation/swagger/configuration/] cannot be opened because it does not exist
at (:180) ~[spring-core-5.2.:5.2.]
at (:56) ~[spring-core-5.2.:5.2.]
at .(:50) ~[spring-core-5.2.:5.2.]
at (:103) ~[spring-core-5.2.:5.2.]
at (:86) ~[spring-boot-2.2.:2.2.]
at (:73) ~[spring-boot-2.2.:2.2.]
at (:81) ~[spring-core-5.2.:5.2.]
at (:695) ~[spring-context-5.2.:5.2.]
at S o u r c e C l a s s . g e t R e l a t e d ( C o n f i g u r a t i o n C l a s s P a r s e r . j a v a : 1089 )   [ s p r i n g − c o n t e x t − 5.2.5. R E L E A S E . j a r : 5.2.5. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . c o n t e x t . a n n o t a t i o n . C o n f i g u r a t i o n C l a s s P a r s e r (:1089) ~[spring-context-5.2.:5.2.] at SourceClass.getRelated(ConfigurationClassParser.java:1089) [springcontext5.2.5.RELEASE.jar:5.2.5.RELEASE]atorg.springframework.context.annotation.ConfigurationClassParser(:1070) ~[spring-context-5.2.:5.2.]
at (:548) ~[spring-context-5.2.:5.2.]
at (:521) ~[spring-context-5.2.:5.2.]
at (:310) ~[spring-context-5.2.:5.2.]
at (:249) ~[spring-context-5.2.:5.2.]
at (:599) ~[spring-context-5.2.:5.2.]
… 20 common frames omitted