从私服git Blade-Boot代码后启动Blade-Boot报错

Blade 未结 1 727
ogb912
ogb912 剑圣 2021-06-15 18:42

一、该问题的重现步骤是什么?

1. 从私服git代码

2. MySQL建表

3.启动Bladex-Boot


二、你期待的结果是什么?实际看到的又是什么?

启动成功,启动报错

三、你正在使用的是什么产品,什么版本?在什么操作系统上?

正在使用的是Bladex-Boot 2.8.1,操作系统:MACOSX Catalina

四、请提供详细的错误堆栈信息,这很重要。


----启动中,读取到的环境变量:[dev],jar地址:[/Users/wangxiaofan/IdeaProjects/BladeX-Boot/target/classes/]----

2021-06-15 18:25:39.153  INFO 24496 --- [kground-preinit] o.h.validator.internal.util.Version      : HV000001: Hibernate Validator 6.0.22.Final

2021-06-15 18:25:39.810 ERROR 24496 --- [           main] o.s.boot.SpringApplication               : Application run failed


java.lang.IllegalStateException: Failed to load property source from location 'classpath:/application.yml'

at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.load(ConfigFileApplicationListener.java:546)

at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.loadForFileExtension(ConfigFileApplicationListener.java:495)

at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.load(ConfigFileApplicationListener.java:465)

at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.lambda$null$7(ConfigFileApplicationListener.java:444)

at java.lang.Iterable.forEach(Iterable.java:75)

at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.lambda$load$8(ConfigFileApplicationListener.java:444)

at java.lang.Iterable.forEach(Iterable.java:75)

at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.load(ConfigFileApplicationListener.java:441)

at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.lambda$load$0(ConfigFileApplicationListener.java:336)

at org.springframework.boot.context.config.FilteredPropertySource.apply(FilteredPropertySource.java:59)

at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.load(ConfigFileApplicationListener.java:324)

at org.springframework.boot.context.config.ConfigFileApplicationListener.addPropertySources(ConfigFileApplicationListener.java:215)

at org.springframework.boot.context.config.ConfigFileApplicationListener.postProcessEnvironment(ConfigFileApplicationListener.java:199)

at org.springframework.boot.context.config.ConfigFileApplicationListener.onApplicationEnvironmentPreparedEvent(ConfigFileApplicationListener.java:189)

at org.springframework.boot.context.config.ConfigFileApplicationListener.onApplicationEvent(ConfigFileApplicationListener.java:177)

at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172)

at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165)

at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)

at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:127)

at org.springframework.boot.context.event.EventPublishingRunListener.environmentPrepared(EventPublishingRunListener.java:76)

at org.springframework.boot.SpringApplicationRunListeners.environmentPrepared(SpringApplicationRunListeners.java:53)

at org.springframework.boot.SpringApplication.prepareEnvironment(SpringApplication.java:345)

at org.springframework.boot.SpringApplication.run(SpringApplication.java:308)

at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:140)

at org.springblade.core.launch.BladeApplication.run(BladeApplication.java:50)

at org.springblade.Application.main(Application.java:34)

Caused by: org.yaml.snakeyaml.parser.ParserException: expected '<document start>', but found '<block mapping start>'

 in 'reader', line 13, column 1:

    spring:

    ^


at org.yaml.snakeyaml.parser.ParserImpl$ParseDocumentStart.produce(ParserImpl.java:226)

at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:158)

at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148)

at org.yaml.snakeyaml.composer.Composer.checkNode(Composer.java:68)

at org.yaml.snakeyaml.constructor.BaseConstructor.checkData(BaseConstructor.java:114)

at org.yaml.snakeyaml.Yaml$1.hasNext(Yaml.java:543)

at org.springframework.beans.factory.config.YamlProcessor.process(YamlProcessor.java:200)

at org.springframework.beans.factory.config.YamlProcessor.process(YamlProcessor.java:164)

at org.springframework.boot.env.OriginTrackedYamlLoader.load(OriginTrackedYamlLoader.java:76)

at org.springframework.boot.env.YamlPropertySourceLoader.load(YamlPropertySourceLoader.java:50)

at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.loadDocuments(ConfigFileApplicationListener.java:563)

at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.load(ConfigFileApplicationListener.java:519)

... 25 common frames omitted



进程已结束,退出代码为 1

五、若有更多详细信息,请在下面提供。

Java版本 1.8

MySQL版本 8.0

1条回答
  • 2021-06-15 23:48

    application.yml配置格式不对,排查一下

    0 讨论(0)
提交回复