介绍
怎么在想法中实现springboot热部署?很多新手对此不是很清楚,为了帮助大家解决这个难题,下面小编将为大家详细讲解,有这方面需求的人可以来学习下,希望你能有所收获。
<强>第一步:引入热加载的插件,springboot 1.3开始就有的强>
& lt; dependency> ,,,,,& lt; groupId> org.springframework.boot ,,,,,& lt; artifactId> spring-boot-devtools ,,,,,& lt; optional> true ,,,& lt;/dependency>
项目中添加spring-boot-maven-plugin,主要在eclipse中起作用,想法不需要加此配置,springboot项目的话,应该是有此配置,加里面的内容即可。
& lt; build> ,,,& lt; plugins> ,,,,,& lt; plugin> ,,,,,,,& lt; groupId> org.springframework.boot ,,,,,,,& lt; artifactId> spring-boot-maven-plugin ,,,,,,,& lt; configuration> ,,,,,,,,,& lt; fork> true ,,,,,,,& lt;/configuration> ,,,,,& lt;/plugin> ,,,& lt;/plugins> & lt;/build>
<强>第二步:想法设置(14版本)
强>
1,点击:文件,设置,构建、执行、Deplment
, & lt; dependency> ,,,,,& lt; groupId> org.springframework.boot ,,,,,& lt; artifactId> spring-boot-devtools ,,,,,& lt; optional> true ,,,& lt;/dependency>
springboot是什么
springboot一种全新的编程规范,其设计目的是用来简化新弹簧应用的初始搭建以及开发过程,springboot也是一个服务于框架的框架,服务范围是简化配置文件。
看完上述内容是否对您有帮助呢?如果还想对相关知识有进一步的了解或阅读更多相关文章,请关注行业资讯频道,感谢您对的支持。