java.lang.IllegalStateException: Failed to load property source from location 'classpath:/application.yml'
at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.load(ConfigFileApplicationListener.java:545) ~[spring-boot-2.2.2.RELEASE.jar:2.2.2.RELEASE]
at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.loadForFileExtension(ConfigFileApplicationListener.java:494) ~[spring-boot-2.2.2.RELEASE.jar:2.2.2.RELEASE]
at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.load(ConfigFileApplicationListener.java:464) ~[spring-boot-2.2.2.RELEASE.jar:2.2.2.RELEASE]
at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.lambda$null$7(ConfigFileApplicationListener.java:443) ~[spring-boot-2.2.2.RELEASE.jar:2.2.2.RELEASE]
at java.lang.Iterable.forEach(Iterable.java:75) ~[na:1.8.0_111]
at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.lambda$load$8(ConfigFileApplicationListener.java:443) ~[spring-boot-2.2.2.RELEASE.jar:2.2.2.RELEASE]
at java.lang.Iterable.forEach(Iterable.java:75) ~[na:1.8.0_111]
at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.load(ConfigFileApplicationListener.java:440) ~[spring-boot-2.2.2.RELEASE.jar:2.2.2.RELEASE]
at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.lambda$load$0(Confi
java.lang.IllegalStateException: Failed to load property source from location ‘classpath:/applicatio
最新推荐文章于 2020-12-30 17:29:40 发布
本文介绍了在Java应用启动时遇到`java.lang.IllegalStateException`错误,原因是配置文件`application.yml`中的端口设置不正确。通过分析错误信息,修复了配置并成功启动应用。提醒开发者在配置文件中要仔细检查。
摘要由CSDN通过智能技术生成