springboot注意事項

1.項目中若是既有yml配置文件又有properties的配置文件。優先使用propeities文件中的配置spring 2.springboot能夠指定工做環境(如測試、開發、生產)能夠在application後邊加上-標識符springboot 好比application-dev.properites。在使用的時候只須要在application中加入spring.profiles.active
相關文章
相關標籤/搜索