0
点赞
收藏
分享

微信扫一扫

【springBoot】搭建多模块项目指南


二、多环境配置内容

①在reources目录下建立多个配置文件

【springBoot】搭建多模块项目指南_占位符

【springBoot】搭建多模块项目指南_命令行_02

【springBoot】搭建多模块项目指南_环境配置_03

②在pom.xml配置profile节点

【springBoot】搭建多模块项目指南_命令行_04

③mvn命令行打包命令,基于参数进行打包替换占位符

mvn -U clean install -Dmaven.test.skip=true -P prod

【springBoot】搭建多模块项目指南_占位符_05

④将target目录下的jar包copy出来,执行命令启动,使用的就是不同环境的配置进行启动的

【springBoot】搭建多模块项目指南_环境配置_06




举报

相关推荐

0 条评论