Closed striveye closed 6 years ago
--spring.config.additional-location=file:%DAVINCI3_HOME%\config\application.yml
加上 --spring.config.additional-location=file:%DAVINCI3_HOME%\config\application.yml 之后确实可以, 但是这样的话在 server 目录下的 application.yml 文件中配置 spring.config.location 还有什么意义,而且只在这里配好像没起作用
单独新建了工程测试了一下,windows系统下springboot以jar包的方式运行,通过配置加载外部配置文件不会生效,目前只能按照这种方式去加载外部配置了
好的,谢谢
Could not resolve placeholder 'spring.datasource.url' in value "${spring.datasource.url}"
这是配置文件的路径错了吗,应该怎么配置