摘要:
SprngBoot异常:This application has no explicit mapping for /error, so you are seeing this as a fallback. 这个问题是因为你用了Spring1.x的写法写了项目的访问路径 2.X的版本不能识别这个路径 阅读全文
posted @ 2020-07-09 23:58
Timeouting
阅读(548)
评论(0)
推荐(0)
摘要:
SpringBoot配置文件加载位置 如果多个配置存在,高优先级覆盖低优先级,并会形成互补配置 项目打包好以后,我们可以使用命令行参数的形式,启动项目的时候来指定配置文件的新位置;不会形成互补配置; 命令行:java -jar xxxx --spring.config.location=xxxxxx 阅读全文
posted @ 2020-07-09 18:34
Timeouting
阅读(150)
评论(0)
推荐(0)
摘要:
Profile是Spring对不同环境提供不同配置的支持,可以通过激活、指定参数等方式快速切换环境 1、多profile文件形式 我们在朱配置值文件编写的时候,文件名可以是application-{profile}.properties/yml 默认使用application.properties的 阅读全文
posted @ 2020-07-09 17:34
Timeouting
阅读(1204)
评论(0)
推荐(0)