关于springboot项目的配置文件yml和properties问题分析
2020-03-01 09:47
976 查看
APPLICATION FAILED TO START
Description:
Failed to configure a DataSource: ‘url’ attribute is not specified and no embedded datasource could be configured.
Reason: Failed to determine a suitable driver class
Action:
Consider the following:
If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.
If you have database settings to be loaded from a particular profile you may need to activate it (no profiles are currently active).
Disconnected from the target VM, address: ‘127.0.0.1:59265’, transport: ‘socket’
Process finished with exit code 0
当我们把aplication.properties文件更改为application.yml的文件时,运行类检测不到url配置文件的内容,应该是springboot的版本升级为2.02版本的问题;
现在仍然是一个bug,所以还是把文件更改为application.properties
这样就可以用了
- 点赞
- 收藏
- 分享
- 文章举报
相关文章推荐
- 解决eclipse创建spring boot项目加载不到application.properties配置文件的问题
- 关于spring Boot配置文件(properties,yml)不会自动提示
- 关于eclipse中springboot的配置文件application.properties中的中文在浏览器中显示乱码的问题。
- 解决spring-boot项目中无法读取yml配置文件属性问题
- springboot项目logback.xml或者logback-spring.xml中读取不到application.yml或application.properties配置文件中的配置解决办法
- 关于配置spring的properties外部文件碰到的问题
- SpringBoot学习:获取yml和properties配置文件的内容(转)
- SpringBoot配置文件application.yml (application.properties)
- springCloud引用common数据源项目都是yml配置文件启动报错问题
- springboot中.properties配置文件输入中文变成ASCII问题
- spring boot 配置文件properties,yml语法学习及属性获取@ConfigurationProperties和@Value
- Spring Boot项目打成jar包后关于配置文件的外部化配置
- Spring Boot 全局配置文件applicaion.properties/applicaion.yml
- SpringBoot 如何让yml,properties配置文件有提示
- 关于springboot的配置文件的读取问题
- SpringBoot学习:获取yml和properties配置文件的内容(转)
- SpringBoot属性文件配置(application.properties/yml)
- 关于Spring boot中读取属性配置文件出现中文乱码的问题的解决
- 关于Springboot 读取不到application.yml配置文件的解决方法
- spring boot 项目properties文件常见配置