每日运行错误(022.6.23)

java.lang.IllegalStateException: Failed to load property source from ‘file:/E:/javawork/cloud-parent/cloud-consumer-feign-order80/target/classes/application.yml’ (classpath:/application.yml)
at org.springframework.boot.context.config.ConfigFileApplicationListener L o a d e r . l o a d ( C o n f i g F i l e A p p l i c a t i o n L i s t e n e r . j a v a : 564 )   [ s p r i n g − b o o t − 2.3.6. R E L E A S E . j a r : 2.3.6. 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 . b o o t . c o n t e x t . c o n f i g . C o n f i g F i l e A p p l i c a t i o n L i s t e n e r Loader.load(ConfigFileApplicationListener.java:564) ~[spring-boot-2.3.6.RELEASE.jar:2.3.6.RELEASE] at org.springframework.boot.context.config.ConfigFileApplicationListener Loader.load(ConfigFileApplicationListener.java:564) [springboot2.3.6.RELEASE.jar:2.3.6.RELEASE]atorg.springframework.boot.context.config.ConfigFileApplicationListenerLoader.loadForFileExtension(ConfigFileApplicationListener.java:501) ~[spring-boot-2.3.6.RELEASE.jar:2.3.6.RELEASE]
at org.springframework.boot.context.config.ConfigFileApplicationListener L o a d e r . l o a d ( C o n f i g F i l e A p p l i c a t i o n L i s t e n e r . j a v a : 471 )   [ s p r i n g − b o o t − 2.3.6. R E L E A S E . j a r : 2.3.6. 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 . b o o t . c o n t e x t . c o n f i g . C o n f i g F i l e A p p l i c a t i o n L i s t e n e r Loader.load(ConfigFileApplicationListener.java:471) ~[spring-boot-2.3.6.RELEASE.jar:2.3.6.RELEASE] at org.springframework.boot.context.config.ConfigFileApplicationListener Loader.load(ConfigFileApplicationListener.java:471) [springboot2.3.6.RELEASE.jar:2.3.6.RELEASE]atorg.springframework.boot.context.config.ConfigFileApplicationListenerLoader.lambda$null 7 ( C o n f i g F i l e A p p l i c a t i o n L i s t e n e r . j a v a : 450 )   [ s p r i n g − b o o t − 2.3.6. R E L E A S E . j a r : 2.3.6. R E L E A S E ] a t j a v a . l a n g . I t e r a b l e . f o r E a c h ( I t e r a b l e . j a v a : 75 )   [ n a : 1.8. 0 3 21 ] a t o r g . s p r i n g f r a m e w o r k . b o o t . c o n t e x t . c o n f i g . C o n f i g F i l e A p p l i c a t i o n L i s t e n e r 7(ConfigFileApplicationListener.java:450) ~[spring-boot-2.3.6.RELEASE.jar:2.3.6.RELEASE] at java.lang.Iterable.forEach(Iterable.java:75) ~[na:1.8.0_321] at org.springframework.boot.context.config.ConfigFileApplicationListener 7(ConfigFileApplicationListener.java:450) [springboot2.3.6.RELEASE.jar:2.3.6.RELEASE]atjava.lang.Iterable.forEach(Iterable.java:75) [na:1.8.0321]atorg.springframework.boot.context.config.ConfigFileApplicationListenerLoader.lambda$load 8 ( C o n f i g F i l e A p p l i c a t i o n L i s t e n e r . j a v a : 450 )   [ s p r i n g − b o o t − 2.3.6. R E L E A S E . j a r : 2.3.6. R E L E A S E ] a t j a v a . l a n g . I t e r a b l e . f o r E a c h ( I t e r a b l e . j a v a : 75 )   [ n a : 1.8. 0 3 21 ] a t o r g . s p r i n g f r a m e w o r k . b o o t . c o n t e x t . c o n f i g . C o n f i g F i l e A p p l i c a t i o n L i s t e n e r 8(ConfigFileApplicationListener.java:450) ~[spring-boot-2.3.6.RELEASE.jar:2.3.6.RELEASE] at java.lang.Iterable.forEach(Iterable.java:75) ~[na:1.8.0_321] at org.springframework.boot.context.config.ConfigFileApplicationListener 8(ConfigFileApplicationListener.java:450) [springboot2.3.6.RELEASE.jar:2.3.6.RELEASE]atjava.lang.Iterable.forEach(Iterable.java:75) [na:1.8.0321]atorg.springframework.boot.context.config.ConfigFileApplicationListenerLoader.load(ConfigFileApplicationListener.java:447) ~[spring-boot-2.3.6.RELEASE.jar:2.3.6.RELEASE]
at org.springframework.boot.context.config.ConfigFileApplicationListener L o a d e r . l a m b d a Loader.lambda Loader.lambdaload 0 ( C o n f i g F i l e A p p l i c a t i o n L i s t e n e r . j a v a : 350 )   [ s p r i n g − b o o t − 2.3.6. R E L E A S E . j a r : 2.3.6. 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 . b o o t . c o n t e x t . c o n f i g . F i l t e r e d P r o p e r t y S o u r c e . a p p l y ( F i l t e r e d P r o p e r t y S o u r c e . j a v a : 54 )   [ s p r i n g − b o o t − 2.3.6. R E L E A S E . j a r : 2.3.6. 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 . b o o t . c o n t e x t . c o n f i g . C o n f i g F i l e A p p l i c a t i o n L i s t e n e r 0(ConfigFileApplicationListener.java:350) ~[spring-boot-2.3.6.RELEASE.jar:2.3.6.RELEASE] at org.springframework.boot.context.config.FilteredPropertySource.apply(FilteredPropertySource.java:54) ~[spring-boot-2.3.6.RELEASE.jar:2.3.6.RELEASE] at org.springframework.boot.context.config.ConfigFileApplicationListener 0(ConfigFileApplicationListener.java:350) [springboot2.3.6.RELEASE.jar:2.3.6.RELEASE]atorg.springframework.boot.context.config.FilteredPropertySource.apply(FilteredPropertySource.java:54) [springboot2.3.6.RELEASE.jar:2.3.6.RELEASE]atorg.springframework.boot.context.config.ConfigFileApplicationListenerLoader.load(ConfigFileApplicationListener.java:338) ~[spring-boot-2.3.6.RELEASE.jar:2.3.6.RELEASE]
at org.springframework.boot.context.config.ConfigFileApplicationListener.addPropertySources(ConfigFileApplicationListener.java:229) ~[spring-boot-2.3.6.RELEASE.jar:2.3.6.RELEASE]
at org.springframework.boot.context.config.ConfigFileApplicationListener.postProcessEnvironment(ConfigFileApplicationListener.java:213) ~[spring-boot-2.3.6.RELEASE.jar:2.3.6.RELEASE]
at org.springframework.boot.context.config.ConfigFileApplicationListener.onApplicationEnvironmentPreparedEvent(ConfigFileApplicationListener.java:203) ~[spring-boot-2.3.6.RELEASE.jar:2.3.6.RELEASE]
at org.springframework.boot.context.config.ConfigFileApplicationListener.onApplicationEvent(ConfigFileApplicationListener.java:191) ~[spring-boot-2.3.6.RELEASE.jar:2.3.6.RELEASE]
at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172) ~[spring-context-5.2.11.RELEASE.jar:5.2.11.RELEASE]
at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165) ~[spring-context-5.2.11.RELEASE.jar:5.2.11.RELEASE]
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139) ~[spring-context-5.2.11.RELEASE.jar:5.2.11.RELEASE]
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:127) ~[spring-context-5.2.11.RELEASE.jar:5.2.11.RELEASE]
at org.springframework.boot.context.event.EventPublishingRunListener.environmentPrepared(EventPublishingRunListener.java:80) ~[spring-boot-2.3.6.RELEASE.jar:2.3.6.RELEASE]
at org.springframework.boot.SpringApplicationRunListeners.environmentPrepared(SpringApplicationRunListeners.java:53) ~[spring-boot-2.3.6.RELEASE.jar:2.3.6.RELEASE]
at org.springframework.boot.SpringApplication.prepareEnvironment(SpringApplication.java:345) [spring-boot-2.3.6.RELEASE.jar:2.3.6.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:308) [spring-boot-2.3.6.RELEASE.jar:2.3.6.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1237) [spring-boot-2.3.6.RELEASE.jar:2.3.6.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1226) [spring-boot-2.3.6.RELEASE.jar:2.3.6.RELEASE]
at com.atguigu.springcloud.OrderFeignMain80.main(OrderFeignMain80.java:11) [classes/:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_321]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_321]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_321]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_321]
at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49) [spring-boot-devtools-2.3.6.RELEASE.jar:2.3.6.RELEASE]
Caused by: org.yaml.snakeyaml.scanner.ScannerException: mapping values are not allowed here
in ‘reader’, line 10, column 16:

service-url:
^
原因:yml文件中没有对齐

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值