博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
[异常笔记] spring boot 启动-2018040201
阅读量:5894 次
发布时间:2019-06-19

本文共 5398 字,大约阅读时间需要 17 分钟。

 

 

 

 

 

异常

1、编码引发异常

00:59:49.311 [main] DEBUG org.springframework.boot.devtools.settings.DevToolsSettings - Included patterns for restart : []00:59:49.318 [main] DEBUG org.springframework.boot.devtools.settings.DevToolsSettings - Excluded patterns for restart : [/spring-boot-starter/target/ classes/, /spring-boot-autoconfigure/target/classes/, /spring-boot-starter-[\w-]+/, /spring-boot/target/classes/, /spring-boot-actuator/target/classes/,  /spring-boot-devtools/target/classes/]00:59:49.319 [main] DEBUG org.springframework.boot.devtools.restart.ChangeableUrls - Matching URLs for reloading : [file:/E:/Mycode/EclipseCode/ SpringCloud/first-springcloud-provider/target/classes/, file:/E:/Mycode/EclipseCode/SpringCloud/first-springcloud-api/target/classes/]00:59:49.734 [restartedMain] DEBUG org.springframework.boot.logging.ClasspathLoggingApplicationListener - Application failed to start with classpath: [file:/E:/Mycode/EclipseCode/SpringCloud/first-springcloud-provider/target/classes/, file:/E:/Mycode/EclipseCode/SpringCloud/first-springcloud-api/ target/classes/]00:59:49.740 [restartedMain] ERROR org.springframework.boot.SpringApplication - Application startup failedjava.lang.IllegalStateException: Failed to load property source from location 'classpath:/application.yml'	at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.loadIntoGroup(ConfigFileApplicationListener.java:476)	at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.load(ConfigFileApplicationListener.java:465)	at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.load(ConfigFileApplicationListener.java:386)	at org.springframework.boot.context.config.ConfigFileApplicationListener.addPropertySources(ConfigFileApplicationListener.java:225)	at org.springframework.boot.context.config.ConfigFileApplicationListener.postProcessEnvironment(ConfigFileApplicationListener.java:195)	at org.springframework.boot.context.config.ConfigFileApplicationListener.onApplicationEnvironmentPreparedEvent(ConfigFileApplicationListener .java:182)	at org.springframework.boot.context.config.ConfigFileApplicationListener.onApplicationEvent(ConfigFileApplicationListener.java:168)	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:122)	at org.springframework.boot.context.event.EventPublishingRunListener.environmentPrepared(EventPublishingRunListener.java:74)	at org.springframework.boot.SpringApplicationRunListeners.environmentPrepared(SpringApplicationRunListeners.java:54)	at org.springframework.boot.SpringApplication.prepareEnvironment(SpringApplication.java:325)	at org.springframework.boot.SpringApplication.run(SpringApplication.java:296)	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1118)	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1107)	at org.xiaoge.springcloud.Dept_8001_StartSpringCloudApplication.main(Dept_8001_StartSpringCloudApplication.java:10)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)	at java.lang.reflect.Method.invoke(Unknown Source)	at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49)Caused by: org.yaml.snakeyaml.error.YAMLException: java.nio.charset.MalformedInputException: Input length = 1	at org.yaml.snakeyaml.reader.StreamReader.update(StreamReader.java:200)	at org.yaml.snakeyaml.reader.StreamReader.
(StreamReader.java:60) at org.yaml.snakeyaml.Yaml.loadAll(Yaml.java:463) at org.springframework.beans.factory.config.YamlProcessor.process(YamlProcessor.java:160) at org.springframework.beans.factory.config.YamlProcessor.process(YamlProcessor.java:138) at org.springframework.boot.env.YamlPropertySourceLoader$Processor.process(YamlPropertySourceLoader.java:101) at org.springframework.boot.env.YamlPropertySourceLoader.load(YamlPropertySourceLoader.java:58) at org.springframework.boot.env.PropertySourcesLoader.load(PropertySourcesLoader.java:127) at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.doLoadIntoGroup(ConfigFileApplicationListener.java:490) at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.loadIntoGroup(ConfigFileApplicationListener.java:473) ... 22 common frames omittedCaused by: java.nio.charset.MalformedInputException: Input length = 1 at java.nio.charset.CoderResult.throwException(Unknown Source) at sun.nio.cs.StreamDecoder.implRead(Unknown Source) at sun.nio.cs.StreamDecoder.read(Unknown Source) at java.io.InputStreamReader.read(Unknown Source) at org.yaml.snakeyaml.reader.UnicodeReader.read(UnicodeReader.java:123) at java.io.Reader.read(Unknown Source) at org.yaml.snakeyaml.reader.StreamReader.update(StreamReader.java:184) ... 31 common frames omitted

  

转载于:https://www.cnblogs.com/tocode/p/8691297.html

你可能感兴趣的文章
DT系统开发之-文件结构目录
查看>>
Android Looper简介
查看>>
【PHP】创蓝253云通信平台国际短信接口调用demo案例
查看>>
Confluence 6 重要缓存和监控
查看>>
Day 30 shell 编程
查看>>
静态路由和默认路由
查看>>
谈一谈Spring-Mybatis在多数据源配置上的坑
查看>>
2.1 shell语句
查看>>
【精益生产】车间现场管理的八大浪费
查看>>
springMVC国际化
查看>>
变频电源内部的元器件是有着什么样的发挥和作用
查看>>
hadoop+spark+scala环境--单实例版
查看>>
数组排序_冒泡排序、选择排序、快速排序
查看>>
mybatis写xml时注意事项
查看>>
关于阿里开发者招聘节 |这5道笔试真题 你会吗!???
查看>>
C#的异常处理机制
查看>>
Redis学习手册(内存优化)
查看>>
openstack Juno安装——之手动安装
查看>>
解决libmcrypt was not found,无法安装mcrypt
查看>>
QSS学习
查看>>