异常

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 failed
java.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.<init>(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 omitted
Caused 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

  

最新文章

  1. css3 perspective perspective-origin属性的理解
  2. DNS域名解析过程
  3. MySQL锁机制总结(二)
  4. Error 0x800704cf
  5. jQueryUI Datepicker的使用
  6. ubuntu 开机显示错误:无法应用原保存的显示器配置
  7. 在文本中匹配链接并添加A标签
  8. Spring Boot - fish
  9. RC4加密算法
  10. 【二分答案】 【POJ3497】 【Northwestern Europe 2007】 Assemble 组装电脑
  11. JIRA官方:JIRA定制工作流
  12. C 语言统计关键字出现次数
  13. Spring与Struts框架整合
  14. GBK,UTF8是什么?有什么区别,做网站选择哪种好?
  15. Android 开发之v4库冲突问题解决方案说明
  16. scikit-learn 决策树 分类问题
  17. html + css3 demo
  18. bootstrap动态添加Tab标签页
  19. dbus 消息和消息总线实例讲解-一
  20. RedHat下安装Python开发环境

热门文章

  1. DEDE利用Ajax实现调用当前登录会员的信息简要说明
  2. pat06-图4. Saving James Bond - Hard Version (30)
  3. JEECMS站群管理系统-- 自定义标签及使用自己创建的表的实现过程
  4. Cordova 常用的插件汇总
  5. .NET面试题3
  6. C#中正则表达式的构建与匹配
  7. 关于hibernate save方法未能存储数据入库的处理过程
  8. Hibernate课程 初探一对多映射5-2 Eclipse添加数据库连接
  9. 顺序链表(C++)
  10. 构建跨平台APP开发的两本书,这里重点推荐下