优化:移除 devtools 依赖
This commit is contained in:
parent
2b4507c36e
commit
2600fe22a3
@ -67,6 +67,7 @@ limitations under the License.
|
||||
<excludedGroups>exclude</excludedGroups>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<!-- Spring Boot 打包插件(将 Spring Boot Maven 应用打包为可执行的 jar 包) -->
|
||||
<plugin>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||
@ -78,7 +79,7 @@ limitations under the License.
|
||||
</execution>
|
||||
</executions>
|
||||
<configuration>
|
||||
<!-- 如果没有该项配置,devtools 不会生效,应用不会自动重启 -->
|
||||
<!-- 在新的 JVM 进程中运行打包任务(另注:在使用 devtools 时,如果没有该项配置,热部署可能会失效) -->
|
||||
<fork>true</fork>
|
||||
<excludes>
|
||||
<exclude>
|
||||
|
7
pom.xml
7
pom.xml
@ -217,13 +217,6 @@ limitations under the License.
|
||||
</dependencyManagement>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-devtools</artifactId>
|
||||
<scope>runtime</scope>
|
||||
<optional>true</optional>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-configuration-processor</artifactId>
|
||||
|
Loading…
Reference in New Issue
Block a user