spring boot java代碼中獲取spring.profiles.active

有時候代碼裏面須要根據不一樣的環境作相應的功能,怎麼獲得當前的spring.profiles.active=?html 原文:https://www.cnblogs.com/linzhanfly/p/9056722.html java 上代碼:spring /** * @description */ @Component public class SpringContextUtil imple
相關文章
相關標籤/搜索