spring boot 入门操作(三)

spring boot入门操作

devtools热部署
  • pom dependencies里添加依赖


    org.springframework.boot
    spring-boot-devtools
    true
    true

  • 添加spring-boot-maven-plugin:




    org.springframework.boot
    spring-boot-maven-plugin


    true



  • 新建类,加

  • @RestController
    注解,添加方法

  • localhost看是否能查到新的url。如果没有手动部署也能访问到新的url,说明ok

posted @ 2017-06-16 22:00  仙山泗水  阅读(150)  评论(0)    收藏  举报