一:首先如果你用的是thymeleaf模板可能是以下情況
二:修改java文件需要重啟服務才能生效問題
1:在myeclipse下
1):點擊下載sPRingloaded-1.2.3.RELEASE.jar 或下載更高版本
2):點擊

3):點擊java application---->HelloController---->Arguments 填寫 springloaded-1.2.3.RELEASE.jar路徑“-javaagent:C:/Users/springloaded-1.2.3.RELEASE.jar -noverify”
點擊run 即可運行項目,再次修改java文件即時生效

2:熱啟動 pom中直接添加依賴即可(非myeclipse):
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <optional>true</optional> </dependency> 3:熱交換或熱部署 使用springloaded插件(非myeclipse)<build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <dependencies> <!-- spring熱部署 --> <dependency> <groupId>org.springframework</groupId> <artifactId>springloaded</artifactId> <version>1.2.6.RELEASE</version> </dependency> </dependencies> </plugin> </plugins> </build> 使用spring-boot:run
新聞熱點
疑難解答