国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

Caused by: java.lang.IllegalStateException: Failed to introspect Class [springfox.documentation.swag

這篇具有很好參考價(jià)值的文章主要介紹了Caused by: java.lang.IllegalStateException: Failed to introspect Class [springfox.documentation.swag。希望對大家有所幫助。如果存在錯誤或未考慮完全的地方,請大家不吝賜教,您也可以點(diǎn)擊"舉報(bào)違法"按鈕提交疑問。

java.lang.IllegalStateException: Error processing condition on org.springframework.boot.autoconfigure.context.PropertyPlaceholderAutoConfiguration.propertySourcesPlaceholderConfigurer
?? ?at org.springframework.boot.autoconfigure.condition.SpringBootCondition.matches(SpringBootCondition.java:60) ~[spring-boot-autoconfigure-2.2.12.RELEASE.jar:2.2.12.RELEASE]
?? ?at org.springframework.context.annotation.ConditionEvaluator.shouldSkip(ConditionEvaluator.java:108) ~[spring-context-5.2.12.RELEASE.jar:5.2.12.RELEASE]
?? ?at org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.loadBeanDefinitionsForBeanMethod(ConfigurationClassBeanDefinitionReader.java:184) ~[spring-context-5.2.12.RELEASE.jar:5.2.12.RELEASE]
?? ?at org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.loadBeanDefinitionsForConfigurationClass(ConfigurationClassBeanDefinitionReader.java:144) ~[spring-context-5.2.12.RELEASE.jar:5.2.12.RELEASE]
?? ?at org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.loadBeanDefinitions(ConfigurationClassBeanDefinitionReader.java:120) ~[spring-context-5.2.12.RELEASE.jar:5.2.12.RELEASE]
?? ?at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:331) ~[spring-context-5.2.12.RELEASE.jar:5.2.12.RELEASE]
?? ?at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:236) ~[spring-context-5.2.12.RELEASE.jar:5.2.12.RELEASE]
?? ?at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:280) ~[spring-context-5.2.12.RELEASE.jar:5.2.12.RELEASE]
?? ?at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:96) ~[spring-context-5.2.12.RELEASE.jar:5.2.12.RELEASE]
?? ?at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:707) ~[spring-context-5.2.12.RELEASE.jar:5.2.12.RELEASE]
?? ?at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:533) ~[spring-context-5.2.12.RELEASE.jar:5.2.12.RELEASE]
?? ?at org.springframework.boot.web.reactive.context.ReactiveWebServerApplicationContext.refresh(ReactiveWebServerApplicationContext.java:66) ~[spring-boot-2.2.12.RELEASE.jar:2.2.12.RELEASE]
?? ?at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:747) [spring-boot-2.2.12.RELEASE.jar:2.2.12.RELEASE]
?? ?at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:405) [spring-boot-2.2.12.RELEASE.jar:2.2.12.RELEASE]
?? ?at org.springframework.boot.SpringApplication.run(SpringApplication.java:315) [spring-boot-2.2.12.RELEASE.jar:2.2.12.RELEASE]
?? ?at org.springframework.boot.SpringApplication.run(SpringApplication.java:1226) [spring-boot-2.2.12.RELEASE.jar:2.2.12.RELEASE]
?? ?at org.springframework.boot.SpringApplication.run(SpringApplication.java:1215) [spring-boot-2.2.12.RELEASE.jar:2.2.12.RELEASE]
?? ?at com.lxyk.yygh.ServiceGatewayApplication.main(ServiceGatewayApplication.java:11) [classes/:na]
Caused by: java.lang.IllegalStateException: Failed to introspect Class [springfox.documentation.swagger2.configuration.Swagger2DocumentationConfiguration] from ClassLoader [sun.misc.Launcher$AppClassLoader@18b4aac2]
?? ?at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:481) ~[spring-core-5.2.12.RELEASE.jar:5.2.12.RELEASE]
?

報(bào)錯代碼如上:

微服務(wù)架構(gòu)

failed to introspect class [springfox.documentation.swagger2.configuration.s,頭疼報(bào)錯的日常,java,開發(fā)語言

?文章來源地址http://www.zghlxwxcb.cn/news/detail-760493.html

gateway和swagger沖突:

注意:我這里service-gateway并沒有使用swagger,而是使用工具類工程導(dǎo)入時(shí)帶入

如果想看gateway整合swagger,可跳過文章

。。之前本來沒有報(bào)錯,隔天啟動就報(bào)錯。。。一天多了才解決,各種方案均試過,然后又會出各種報(bào)錯,bug制造機(jī)

gateway和以下的包都沖突:

所以如果導(dǎo)入了web的jar包,需要注釋掉

gateway使用的是webflux,和web會造成沖突

   ????????<dependency>
          <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
          <scope>provided</scope>
        </dependency>

網(wǎng)關(guān)和@EnableSwagger2會沖突,如果你去掉這個注解就不會報(bào)錯,但是,會導(dǎo)致其他模塊引入的swagger測試失效:

failed to introspect class [springfox.documentation.swagger2.configuration.s,頭疼報(bào)錯的日常,java,開發(fā)語言?

?解決方案:

查看網(wǎng)關(guān)的maven依賴樹

,查找swagger出現(xiàn)的依賴工程 ,我這里已經(jīng)去掉了該工程

failed to introspect class [springfox.documentation.swagger2.configuration.s,頭疼報(bào)錯的日常,java,開發(fā)語言

?

去掉有swagger依賴的工程,但是不明白為什么之前沒報(bào)錯,突然就報(bào)錯了,跟著視頻里面的老師寫的,是這樣寫的也沒報(bào)錯?

明明主啟動類沒有使用@ComponentScan來掃描swagger的包,但是swagger卻生效

待研究,,

failed to introspect class [springfox.documentation.swagger2.configuration.s,頭疼報(bào)錯的日常,java,開發(fā)語言?

failed to introspect class [springfox.documentation.swagger2.configuration.s,頭疼報(bào)錯的日常,java,開發(fā)語言?

?

?

到了這里,關(guān)于Caused by: java.lang.IllegalStateException: Failed to introspect Class [springfox.documentation.swag的文章就介紹完了。如果您還想了解更多內(nèi)容,請?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來自互聯(lián)網(wǎng)用戶投稿,該文觀點(diǎn)僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實(shí)不符,請點(diǎn)擊違法舉報(bào)進(jìn)行投訴反饋,一經(jīng)查實(shí),立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費(fèi)用

相關(guān)文章

  • Caused by: java.lang.IllegalStateException: No DataSource set

    如果Nacos連不上數(shù)據(jù)庫,還哪都配置正確,請注意時(shí)區(qū) serverTimezone=Asia/Shanghai

    2024年02月11日
    瀏覽(160)
  • 解決Caused by: java.lang.IllegalStateException: Ambiguous mapping. Cannot map ‘inteController‘

    解決Caused by: java.lang.IllegalStateException: Ambiguous mapping. Cannot map ‘inteController‘

    出現(xiàn)這個錯也可能會出現(xiàn)項(xiàng)目無法啟動的錯誤。完整錯誤是 一、錯誤出現(xiàn)原因 : ? ? ? ? controller層出現(xiàn)了重復(fù)的方法映射 ???????? ????????可以看到圖片中兩個方法的映射是一樣的,這是問題所在 解決方法也很簡單,既然已經(jīng)知道了問題所在那么解決起來也很簡單

    2024年02月10日
    瀏覽(96)
  • Caused by: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.Life

    Caused by: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.Life

    已經(jīng)遇到兩次這個錯誤了,很煩,雖然都解決了,但是還是很惡心人; 在項(xiàng)目中加了一個包,但是,沒有把這個包加到artifacts里面; 解決辦法是: ?把這個包加到artifacts里面;或者刪除整個artifacts,然后重新構(gòu)建; 第二種情況是 : 給項(xiàng)目的某個模塊引入了相關(guān)的依賴包,

    2024年02月02日
    瀏覽(162)
  • kkFileView啟動時(shí)報(bào)錯Caused by: java.lang.IllegalStateException: a process with acceptString ‘socket,host=

    kkFileView啟動時(shí)報(bào)錯Caused by: java.lang.IllegalStateException: a process with acceptString ‘socket,host=

    原因當(dāng)前遇到兩種情況: xshell彈窗提示“需要Xmanager軟件來處理X11轉(zhuǎn)發(fā)請求; 之前運(yùn)行過,已經(jīng)運(yùn)行了libreoffice7.1,shutdown腳本未kill掉libreoffice7.1的進(jìn)程。 如果是xshell彈窗提示“需要Xmanager軟件來處理X11轉(zhuǎn)發(fā)請求”,只需要按照提示,關(guān)閉會話屬性即可解決該問題。 在連接會

    2024年02月11日
    瀏覽(90)
  • java.lang.IllegalStateException: Failed to load ApplicationContext

    java.lang.IllegalStateException: Failed to load ApplicationContext

    mvn clean install的時(shí)候報(bào)的如下異常: 緊接著又往下翻了一下日志還有一個這個錯誤 按正常來說通過 @@ 可以取pom當(dāng)中的properties標(biāo)簽的值呀。但是可以發(fā)現(xiàn)編譯過后的application當(dāng)中的值并沒有被替換。 (1)我先是將server.port=@server.port@替換成了server.port=8082,然后clean install直接成

    2024年02月07日
    瀏覽(51)
  • java.lang.IllegalStateException: Failed to execute ApplicationRunner

    java.lang.IllegalStateException: Failed to execute ApplicationRunner

    在跑search服務(wù)實(shí)現(xiàn)ApplicationRunner接口的監(jiān)聽類時(shí),出現(xiàn)Failed to execute ApplicationRunner這個錯誤

    2024年02月11日
    瀏覽(40)
  • java.lang.IllegalStateException:Failed to load ApplicationContext

    java.lang.IllegalStateException:Failed to load ApplicationContext

    無法加載應(yīng)用程序上下文。這可能有許多原因,例如配置文件不正確或缺少依賴項(xiàng)。 解決步驟: 檢查是否存在所有所需的依賴項(xiàng),并確保它們在項(xiàng)目的pom.xml文件中正確配置。 檢查配置文件(例如application.properties或application.yml)是否位于正確的位置,并且其內(nèi)容是否已正確格式化

    2024年02月07日
    瀏覽(29)
  • Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make protected final java.lang.C

    Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make protected final java.lang.C

    最近在學(xué)習(xí)JDK17的時(shí)候遇到這么一個問題,springBoot啟動失敗,日志如下: 原因:這是由于 JDK 8 中有關(guān)反射相關(guān)的功能自從 JDK 9 開始就已經(jīng)被限制了,為了兼容原先的版本,需要在運(yùn)行項(xiàng)目時(shí)添加? --add-opens java.base/java.lang=ALL-UNNAMED ?選項(xiàng)來開啟這種默認(rèn)不被允許的行為。 解

    2024年02月03日
    瀏覽(94)
  • java.lang.IllegalStateException: Failed to load ApplicationContext報(bào)錯怎么辦

    近期在進(jìn)行項(xiàng)目開發(fā)時(shí),我遇到了一個報(bào)錯:java.lang.IllegalStateException: Failed to load ApplicationContext 。這個報(bào)錯的原因可能有很多種,但是通過排查,我成功解決了它。在這里分享一下,希望能對遇到同樣報(bào)錯的開發(fā)者有所幫助。 首先,我們先來了解一下這個報(bào)錯的大致意思。

    2024年02月13日
    瀏覽(103)
  • 第三方應(yīng)用調(diào)用系統(tǒng)SO 庫失敗Caused by: java.lang.UnsatisfiedLinkError: dlopen failed: library

    在Android 31平臺,嘗試使用第三方應(yīng)用調(diào)用系統(tǒng)SO 庫,會報(bào)如下的錯誤 Caused by: java.lang.UnsatisfiedLinkError: dlopen failed: library \\\" /system/lib64/XXX.so \\\" needed or dlopened by \\\"/apex/com.android.art/lib64/libnativeloader.so\\\" is not accessible for the namespace \\\"classloader-namespace\\\" 大體原因是,Android N 開始限制 第三方

    2024年02月12日
    瀏覽(22)

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包