java鬼混笔记:springboot 4、springboot热部署

来源:互联网 发布:2016年6月我国域名总数 编辑:程序博客网 时间:2024/05/17 03:53

///////

很简单,在pom.xml加入

<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-devtools</artifactId></dependency>

OK,就这么简单。。。。


有的人设置热部署没效果或没反应,解决方法是


设置一下你的的Eclipse中的 -- Project-- Build Automatically(打上勾) 就行了,,,其他的IDE也设置这个玩意就行了

还有一种可能是eclipse创建出来的springboot项目中同pox.xml中的parent<spring-boot-starter-parent>版本不对,比如eclipse创建出来的spring-boot-starter-parent的version是1.5.8.RELEASE,热部署是不行的,得换成1.5.7.RELEASE才行。。。

////

原创粉丝点击