diff --git a/README.md b/README.md index 42a6a04b..8e3ee8e7 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,7 @@ * Bean简化 使用 Lombok 简化 get set toString 等等 * 容器改动 Tomcat 改为 并发性能更好的 undertow * 代码生成模板 改为适配 Mybatis-Plus 的代码 +* 项目修改为 maven多环境配置 * 重磅更新 升级MybatisPlus 3.4.1 重写配置文件详细注释 更新所有插件 * 同步升级 3.2.1 修复重大bug 阻止任意文件下载漏洞 diff --git a/pom.xml b/pom.xml index 5c0870db..db9ebfb9 100644 --- a/pom.xml +++ b/pom.xml @@ -249,6 +249,12 @@ + + + src/main/resources + true + + @@ -276,4 +282,26 @@ + + + dev + + + dev + debug + + + + true + + + + prod + + prod + warn + + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/application-prop.yml b/ruoyi-admin/src/main/resources/application-prod.yml similarity index 100% rename from ruoyi-admin/src/main/resources/application-prop.yml rename to ruoyi-admin/src/main/resources/application-prod.yml diff --git a/ruoyi-admin/src/main/resources/application.yml b/ruoyi-admin/src/main/resources/application.yml index 394380bc..5a786661 100644 --- a/ruoyi-admin/src/main/resources/application.yml +++ b/ruoyi-admin/src/main/resources/application.yml @@ -38,7 +38,7 @@ server: # 日志配置 logging: level: - com.ruoyi: debug + com.ruoyi: @logging.level@ org.springframework: warn # Spring配置 @@ -48,7 +48,7 @@ spring: # 国际化资源文件路径 basename: i18n/messages profiles: - active: dev + active: @profiles.active@ # 文件上传 servlet: multipart: