您当前的位置: 首页 >  spring

【03】

暂无认证

  • 1浏览

    0关注

    196博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

springboot热启动配置

【03】 发布时间:2020-07-17 10:26:35 ,浏览量:1

1.引入配置

pom.xml中


	org.springframework.boot
	spring-boot-devtools
	1.5.6.RELEASE
	runtime

2. 设置idea 应用程序运行时允许编译器自动生成

ctrl + shift + alt + /,选择Registry,勾上 Compiler autoMake allow when app running

PS: 这里如果快捷键找不到可以 Help->FindAction ->搜索Registry 可以找到

设置idea 自动生成项目

File-Settings-Compiler-Build Project automatically

?设置完成啦

出现错误解决

如出现 DEBUG org.springframework.boot.context.logging.ClasspathLoggingApplicationListener - Application fai

是因为spring-boot-devtools版本太高的原因,比如springbot版本较低,spring-boot-devtools版本较高

解决,降低spring-boot-devtools版本,spring-boot-devtools的版本改成比spring-boot-starter-parent版本低或者相同版本即可

关注
打赏
1657344724
查看更多评论
立即登录/注册

微信扫码登录

0.0407s