[异常笔记] spring boot 启动-2018040201
异常
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 = 1at 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 = 1at 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
[异常笔记] spring boot 启动-2018040201相关推荐
- Spring Boot启动过程源码分析--转
https://blog.csdn.net/dm_vincent/article/details/76735888 关于Spring Boot,已经有很多介绍其如何使用的文章了,本文从源代码(基于Sp ...
- 强大的Spring Boot启动监听器事件-初始化系统账号密码
文章目录 前言 一.SpringApplicationEvents 事件类型 1.1 ApplicationStartingEvent 1.2 ApplicationEnvironmentPrepar ...
- [Spring Boot] 2. Spring Boot 启动过程定制化
在上一篇文章中,从源码角度介绍了Spring Boot的启动过程.启动的代码虽然只有短短的一行,但是背后所做的工作还真不少,其中有一些可以定制化的部分,主要分为以下几个方面: 初始化器(Initial ...
- spring boot启动 Failed to scan from classloader hierarchy 解决方案
文章目录 错误如下 : 原由 第一次修改 二次改造如下: 错误如下 : 15:01:57.051 [restartedMain] WARN o.a.t.util.scan.StandardJarSca ...
- Spring Boot启动过程(七):Connector初始化
Connector实例的创建已经在Spring Boot启动过程(四):Spring Boot内嵌Tomcat启动中提到了: Connector是LifecycleMBeanBase的子类,先是设置L ...
- Spring Boot 启动事件顺序
大家都知道,在 Spring 框架中事件和监听无处不在,打通了 Spring 框架的任督二脉,事件和监听也是 Spring 框架必学的核心知识之一. 一般来说,我们很少会使用到应用程序事件,但我们也不 ...
- Spring Boot 启动事件和监听器,太强大了!
大家都知道,在 Spring 框架中事件和监听无处不在,打通了 Spring 框架的任督二脉,事件和监听也是 Spring 框架必学的核心知识之一. 一般来说,我们很少会使用到应用程序事件,但我们也不 ...
- Spring boot 启动报错 'elasticsearchTemplate' that could not be found.
Spring boot 启动报错 (a)异常信息 Error starting ApplicationContext. To display the conditions report re-run ...
- Spring boot 启动后执行特定的操作
有时候我们需要在应用启动完成后执行一些特定的操作,比如: 删除一些临时文件或者Redis中的缓存 将一些字典类的数据加载到缓存,这样就不用每次去数据库中查了,有些关联数据从缓存中取得赋值就可以了,不再 ...
最新文章
- 如何避免jquery库和其它库的冲突
- mathcal 对应于什么库_如何快速构建React组件库
- struts+hibernate+oracle+easyui实现lazyout组件的简单案例——Dept实体类和对应的配置信息
- 苏州科技学院计算机组成原理考试,苏州科技学院计算机组成原理复习提纲.doc...
- token的作用_说一说Coin和Token有什么不同
- ThinPHP3.2中 addAll()批量插入数据
- sqlserver 查找某个字符在字符串中第N次出现的位置
- Atitit.自定义存储引擎的接口设计 api 标准化 attilax 总结 mysql
- 设计模式 (九) 组合模式
- AD16 pdf打印输出彩色
- RuntimeError: Exporting the operator prim_DictConstruct to ONNX opset version 11 is not supported.
- 019--python内置函数
- 【踩坑笔记】java使用poi导出word文档换行
- 携程2017 校招编程题
- ACProtect ——脱壳
- 王建农老师昆笛 + 简谱
- Enter键绑定按钮或方法
- bind9 dlz mysql_bind-9.4.2+mysql dlz安装
- Java代码走查审查规范总结
- python绘制气象等值线图_气象要素场等值线图自动绘制