mirror of
				https://github.com/dromara/RuoYi-Vue-Plus.git
				synced 2025-11-04 16:23:42 +08:00 
			
		
		
		
	项目修改为 maven多环境配置
This commit is contained in:
		@@ -4,6 +4,7 @@
 | 
			
		||||
* Bean简化 使用 Lombok 简化 get set toString 等等
 | 
			
		||||
* 容器改动 Tomcat 改为 并发性能更好的 undertow
 | 
			
		||||
* 代码生成模板 改为适配 Mybatis-Plus 的代码
 | 
			
		||||
* 项目修改为 maven多环境配置
 | 
			
		||||
* 重磅更新 升级MybatisPlus 3.4.1 重写配置文件详细注释 更新所有插件
 | 
			
		||||
* 同步升级 3.2.1 修复重大bug 阻止任意文件下载漏洞
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										28
									
								
								pom.xml
									
									
									
									
									
								
							
							
						
						
									
										28
									
								
								pom.xml
									
									
									
									
									
								
							@@ -249,6 +249,12 @@
 | 
			
		||||
                </configuration>
 | 
			
		||||
            </plugin>
 | 
			
		||||
        </plugins>
 | 
			
		||||
        <resources>
 | 
			
		||||
            <resource>
 | 
			
		||||
                <directory>src/main/resources</directory>
 | 
			
		||||
                <filtering>true</filtering>
 | 
			
		||||
            </resource>
 | 
			
		||||
        </resources>
 | 
			
		||||
    </build>
 | 
			
		||||
 | 
			
		||||
    <repositories>
 | 
			
		||||
@@ -276,4 +282,26 @@
 | 
			
		||||
        </pluginRepository>
 | 
			
		||||
    </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>
 | 
			
		||||
@@ -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:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user