![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
spring boot
真相不难
真相只有一个
展开
-
spring boot profile整合maven profile
spring boot支持多环境配置文件,在resources下可以定义:application.yml,application-pro.yml,application-test.yml 这样的配置文件,格式为application-xxx.yml,其中后面的xxx就是profile名称,在application.yml中定义spring.profiles.active: test,来表示使用哪个...原创 2018-06-21 15:45:11 · 1136 阅读 · 0 评论 -
Do not use @ for indentation 异常
spring boot应用启动时,报了下面一个错:...Caused by: org.yaml.snakeyaml.scanner.ScannerException: while scanning for the next tokenfound character '@' that cannot start any token. (Do not use @ for indentatio...原创 2018-06-21 16:08:41 · 14485 阅读 · 0 评论 -
springboot项目使用gradle构建时profile的指定
springboot项目可以引用maven profile下变量,在maven打包时确定springboot的profile,那么使用gradle构建时,如何在gradle打包时指定springboot项目所使用profile文件呢?原创 2018-07-06 16:02:46 · 10448 阅读 · 4 评论