Skip to content

Commit 492ea40

Browse files
author
litongjava
committed
update prifles of pom.xml
1 parent ff6623c commit 492ea40

File tree

2 files changed

+533
-4
lines changed

2 files changed

+533
-4
lines changed

docs/zh/01_tio-boot 简介/02.md

+19-3
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,32 @@ If you are developing with Java 8, please use the following dependency:
6363

6464
</dependencies>
6565
<profiles>
66-
<!-- 开发环境 -->
66+
<!-- development -->
6767
<profile>
6868
<id>development</id>
6969
<activation>
7070
<activeByDefault>true</activeByDefault>
7171
</activation>
72+
<build>
73+
<plugins>
74+
<plugin>
75+
<groupId>org.springframework.boot</groupId>
76+
<artifactId>spring-boot-maven-plugin</artifactId>
77+
<version>2.7.4</version>
78+
<configuration>
79+
<fork>true</fork>
80+
<mainClass>${main.class}</mainClass>
81+
<excludeGroupIds>org.projectlombok</excludeGroupIds>
82+
<arguments>
83+
<argument>--mode=dev</argument>
84+
</arguments>
85+
</configuration>
86+
</plugin>
87+
</plugins>
88+
</build>
7289
</profile>
7390

74-
<!-- 生产环境 -->
91+
<!-- production -->
7592
<profile>
7693
<id>production</id>
7794
<build>
@@ -84,7 +101,6 @@ If you are developing with Java 8, please use the following dependency:
84101
<mainClass>${main.class}</mainClass>
85102
<excludeGroupIds>org.projectlombok</excludeGroupIds>
86103
</configuration>
87-
<!-- 设置执行目标 -->
88104
<executions>
89105
<execution>
90106
<goals>

0 commit comments

Comments
 (0)