SpringBoot知识点(一)

1.屏蔽命令行访问属性的设置:SpringApplication.setAddCommandLineProperties(false) 2.多环境配置:在Spring Boot中多环境配置文件名须要知足application-{profile}.properties的格式,其中{profile}对应你的环境标识,好比: application-dev.properties:开发环境 applica
相关文章
相关标签/搜索