spring热部署

1.在maven中添加如下配置

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

更改开发工具(idea)配置
(1)进入设置setting,Build,Execut, Deployment -> Compiler 勾选右侧的Build Project automatically
(2)开启项目运行时自动build,在打开的页面上快捷键ctrl + shift + a 搜索命令:registry –> 勾选compiler.automake.allow.when.app.running

2.使用JRebel插件

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章