优化:移除 devtools 依赖

This commit is contained in:
Charles7c 2023-03-21 20:22:29 +08:00
parent 2b4507c36e
commit 2600fe22a3
2 changed files with 2 additions and 8 deletions

View File

@ -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>

View File

@ -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>