springboot之profile配置(不一样环境的配置)五

profile是spring用来针对不一样环境对不一样的配置提供支持。spring 经过在application.properties中设置spring.profiles.active=prod来指定活动的profileapp 以下例子所示:blog 启动项目,启动的是profiles配置的端口:io
相关文章
相关标签/搜索