在idea上怎么才能使用Spring的热部署 

这里仅用Maven做介绍

(1)在Maven中添加依赖

(2)在插件配置

但是,为什么配置了还是没有用呢 ?!

这是因为idea默认是没有自动编译的,我们这里需要添加修改配置.打开设置

(1)File-Settings-Compiler-Build Project automatically

还有一点,按住以下快捷键,唤出 Registry

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

PS:这里如果快捷键找不到可以 Help->FindAction ->搜索Registry 第一个就是了

打上勾就OK了!

这里再贴一个博主的网页,写的挺好的!

https://blog.csdn.net/isea533/article/details/70495714

GitHub 加速计划 / sp / spring-boot
37
6
下载
spring-projects/spring-boot: 是一个用于简化Spring应用开发的框架。适合用于需要快速开发企业级Java应用的项目。特点是可以提供自动配置、独立运行和内置的Tomcat服务器,简化Spring应用的构建和部署。
最近提交(Master分支:17 天前 )
5348880b This commit modularizes spring-boot-test-autoconfigure. It now contains only the code that's central to test auto-configuration. Feature-specific functionality has moved out into -test modules, some existing and some newly created. For example, `@DataJpaTest` can now be found in spring-boot-data-jpa-test. Closes gh-47322 9 小时前
7979a51f See gh-47318 See gh-47319 13 小时前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐