mirror of
				https://github.com/dromara/RuoYi-Vue-Plus.git
				synced 2025-11-04 16:23:42 +08:00 
			
		
		
		
	remove 移除 devtools 依赖 并不好用(建议直接用idea自带的热更)
This commit is contained in:
		@@ -18,13 +18,6 @@
 | 
			
		||||
 | 
			
		||||
    <dependencies>
 | 
			
		||||
 | 
			
		||||
        <!-- spring-boot-devtools -->
 | 
			
		||||
        <dependency>
 | 
			
		||||
            <groupId>org.springframework.boot</groupId>
 | 
			
		||||
            <artifactId>spring-boot-devtools</artifactId>
 | 
			
		||||
            <optional>true</optional> <!-- 表示依赖不会传递 -->
 | 
			
		||||
        </dependency>
 | 
			
		||||
 | 
			
		||||
        <!-- Mysql驱动包 -->
 | 
			
		||||
        <dependency>
 | 
			
		||||
            <groupId>com.mysql</groupId>
 | 
			
		||||
@@ -105,9 +98,6 @@
 | 
			
		||||
                <groupId>org.springframework.boot</groupId>
 | 
			
		||||
                <artifactId>spring-boot-maven-plugin</artifactId>
 | 
			
		||||
                <version>${spring-boot.version}</version>
 | 
			
		||||
                <configuration>
 | 
			
		||||
<!--                    <fork>true</fork> <!– 如果没有该配置,devtools不会生效 –>-->
 | 
			
		||||
                </configuration>
 | 
			
		||||
                <executions>
 | 
			
		||||
                    <execution>
 | 
			
		||||
                        <goals>
 | 
			
		||||
 
 | 
			
		||||
@@ -14,7 +14,6 @@ import org.springframework.boot.context.metrics.buffering.BufferingApplicationSt
 | 
			
		||||
public class RuoYiApplication {
 | 
			
		||||
 | 
			
		||||
    public static void main(String[] args) {
 | 
			
		||||
        System.setProperty("spring.devtools.restart.enabled", "false");
 | 
			
		||||
        SpringApplication application = new SpringApplication(RuoYiApplication.class);
 | 
			
		||||
        application.setApplicationStartup(new BufferingApplicationStartup(2048));
 | 
			
		||||
        application.run(args);
 | 
			
		||||
 
 | 
			
		||||
@@ -77,11 +77,6 @@ spring:
 | 
			
		||||
      max-file-size: 10MB
 | 
			
		||||
      # 设置总上传的文件大小
 | 
			
		||||
      max-request-size: 20MB
 | 
			
		||||
  # 服务模块
 | 
			
		||||
  devtools:
 | 
			
		||||
    restart:
 | 
			
		||||
      # 热部署开关
 | 
			
		||||
      enabled: true
 | 
			
		||||
  mvc:
 | 
			
		||||
    format:
 | 
			
		||||
      date-time: yyyy-MM-dd HH:mm:ss
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user