jdk: 17 idea: 2022.x spring boot: 2.7.7
Spring boot files replaced with other suffixes in addition to dev and default configuration files cannot be started and are stuck at the logo
Comment From: yuluo-yx
Code samples are uploaded after masking
Comment From: yuluo-yx
please See https://github.com/yuluo-yx/spring-boot-2.7.7-.git
Comment From: bclozel
@yuluo-yx I'm sorry but the repro project has 12+ modules and lots of unrelated dependencies. Please reduce this sample to the minimum required to reproduce this issue.
Comment From: yuluo-yx
@yuluo-yx抱歉,repro 项目有 12 个以上的模块和许多不相关的依赖项。请将此样本减少到重现此问题所需的最低限度。
I removed useless modules and partial dependencies. Please run service-exam.tx.edu.cn Then change the Spring Profiles Active in application.yml to dev. Reproducible issue
Comment From: bclozel
This is silently failing because of
org.springframework.context.ApplicationContextException: Failed to start bean 'webServerStartStop'; nested exception is java.lang.IllegalStateException: failed to req API:/nacos/v1/ns/instance after all servers([localhost:8848]) tried: failed to req API:localhost:8848/nacos/v1/ns/instance. code:500 msg: java.net.ConnectException: Connection refused
The exception is processed by listeners and rethrown by Spring Boot as expected, but I think that something with nacos is preventing this exception from being reported and failing the app properly. I'm closing this issue as this doesn't look related to Spring Boot. Please reach out to the nacos community about this. Feel free to reopen this issue if you manage to reproduce this problem without nacos being involved.
Thanks
Comment From: yuluo-yx
Thank you so much!