项目修改为 maven多环境配置
This commit is contained in:
parent
b36b413a69
commit
f7f7557d4d
@ -4,6 +4,7 @@
|
|||||||
* Bean简化 使用 Lombok 简化 get set toString 等等
|
* Bean简化 使用 Lombok 简化 get set toString 等等
|
||||||
* 容器改动 Tomcat 改为 并发性能更好的 undertow
|
* 容器改动 Tomcat 改为 并发性能更好的 undertow
|
||||||
* 代码生成模板 改为适配 Mybatis-Plus 的代码
|
* 代码生成模板 改为适配 Mybatis-Plus 的代码
|
||||||
|
* 项目修改为 maven多环境配置
|
||||||
* 重磅更新 升级MybatisPlus 3.4.1 重写配置文件详细注释 更新所有插件
|
* 重磅更新 升级MybatisPlus 3.4.1 重写配置文件详细注释 更新所有插件
|
||||||
* 同步升级 3.2.1 修复重大bug 阻止任意文件下载漏洞
|
* 同步升级 3.2.1 修复重大bug 阻止任意文件下载漏洞
|
||||||
|
|
||||||
|
28
pom.xml
28
pom.xml
@ -249,6 +249,12 @@
|
|||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
|
<resources>
|
||||||
|
<resource>
|
||||||
|
<directory>src/main/resources</directory>
|
||||||
|
<filtering>true</filtering>
|
||||||
|
</resource>
|
||||||
|
</resources>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
<repositories>
|
<repositories>
|
||||||
@ -276,4 +282,26 @@
|
|||||||
</pluginRepository>
|
</pluginRepository>
|
||||||
</pluginRepositories>
|
</pluginRepositories>
|
||||||
|
|
||||||
|
<profiles>
|
||||||
|
<profile>
|
||||||
|
<id>dev</id>
|
||||||
|
<properties>
|
||||||
|
<!-- 环境标识,需要与配置文件的名称相对应 -->
|
||||||
|
<profiles.active>dev</profiles.active>
|
||||||
|
<logging.level>debug</logging.level>
|
||||||
|
</properties>
|
||||||
|
<activation>
|
||||||
|
<!-- 默认环境 -->
|
||||||
|
<activeByDefault>true</activeByDefault>
|
||||||
|
</activation>
|
||||||
|
</profile>
|
||||||
|
<profile>
|
||||||
|
<id>prod</id>
|
||||||
|
<properties>
|
||||||
|
<profiles.active>prod</profiles.active>
|
||||||
|
<logging.level>warn</logging.level>
|
||||||
|
</properties>
|
||||||
|
</profile>
|
||||||
|
</profiles>
|
||||||
|
|
||||||
</project>
|
</project>
|
@ -38,7 +38,7 @@ server:
|
|||||||
# 日志配置
|
# 日志配置
|
||||||
logging:
|
logging:
|
||||||
level:
|
level:
|
||||||
com.ruoyi: debug
|
com.ruoyi: @logging.level@
|
||||||
org.springframework: warn
|
org.springframework: warn
|
||||||
|
|
||||||
# Spring配置
|
# Spring配置
|
||||||
@ -48,7 +48,7 @@ spring:
|
|||||||
# 国际化资源文件路径
|
# 国际化资源文件路径
|
||||||
basename: i18n/messages
|
basename: i18n/messages
|
||||||
profiles:
|
profiles:
|
||||||
active: dev
|
active: @profiles.active@
|
||||||
# 文件上传
|
# 文件上传
|
||||||
servlet:
|
servlet:
|
||||||
multipart:
|
multipart:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user