在application.yml中加入以下配置 热部署配置 设置不参与热部署的文件或者文件夹 devtools: restart: exclude: static/**,public/**,config/application.yml