springboot笔记(8)Devtools热部署

1.创建springboot项目

在这里插入图片描述
在这里插入图片描述

2.测试

编写接口

@Configuration
public class HelloController {

    @GetMapping
    public String hello(){
        return "1234";
    }
}

运行
改变java代码点击箭头
在这里插入图片描述
对于resources监控

spring.devtools.restart.exclude=classpath:/static/**

文件修改才能重新部署

spring.devtools.restart.trigger-file=.trigger-file
发布了33 篇原创文章 · 获赞 19 · 访问量 3546

猜你喜欢

转载自blog.csdn.net/qq_42794826/article/details/103899539