漏了修改autoupdate了?
访问两次
怎么解决的
可以具体描述不?
如Pom中包有没有正常加载
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<dependencies>
<!-- https://repo.spring.io/webapp/#/artifacts/browse/simple/General/libs-snapshot-local/org/springframework/springloaded -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>springloaded</artifactId>
<version>1.2.8.RELEASE</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
服务成功启动,但是热部署失败
我也是一样的情况,用spring-devtools是没问题的
ctrl+shift+F9
ctrl+f9 idea重新编译
你的 反斜杠 错误了 \
使用spring-boot-devtools实现(基于IDEA)
a、加maven依赖
<!--Spring 官方提供的热部署插件 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
</dependency>
b、开启热部署
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<fork>true</fork>
</configuration>
</plugin>
c、开启idea自动make功能
CTRL + SHIFT + A --> 查找make project automatically --> 选中
CTRL + SHIFT + A --> 查找Registry --> 找到并勾选compiler.automake.allow.when.app.running
d、重启IDEA
spring boot 简化了一些配置 本质还是spring那些东西
因为Intellij IDEA默认不是自动编译的, 需要手动的编译一下, 按下ctrl + f9就可以了. eclipse是修改了文件, 自动编译的. 具体怎么修改为自动编译. 可以参考 http://blog.csdn.net/wjc475869/article/details/52442484 不过不建议这么做.