| | |
| | | <plugin> |
| | | <groupId>org.springframework.boot</groupId> |
| | | <artifactId>spring-boot-maven-plugin</artifactId> |
| | | <version>2.5.15</version> |
| | | <version>2.5.14</version> |
| | | <configuration> |
| | | <fork>true</fork> <!-- 如果没有该配置,devtools不会生效 --> |
| | | <profiles> |
| | | <profile>dev</profile> |
| | | <profile>prod</profile> |
| | | </profiles> |
| | | <mainClass>com.ruoyi.RuoYiApplication</mainClass> |
| | | </configuration> |
| | | <executions> |
| | | <execution> |
| | |
| | | <profile> |
| | | <id>dev</id> |
| | | <properties> |
| | | <spring.profiles.active>dev</spring.profiles.active> |
| | | <logging.level.com.ruoyi>debug</logging.level.com.ruoyi> |
| | | <profiles.active>dev</profiles.active> |
| | | </properties> |
| | | <activation> |
| | | <activeByDefault>true</activeByDefault> |
| | | </activation> |
| | | </profile> |
| | | <profile> |
| | | <id>test</id> |
| | | <properties> |
| | | <profiles.active>test</profiles.active> |
| | | </properties> |
| | | </profile> |
| | | <profile> |
| | | <id>prod</id> |
| | | <properties> |
| | | <spring.profiles.active>prod</spring.profiles.active> |
| | | <logging.level.com.ruoyi>info</logging.level.com.ruoyi> |
| | | <profiles.active>prod</profiles.active> |
| | | </properties> |
| | | </profile> |
| | | </profiles> |