springboot-02 热部署

springboot-02 热部署

案例

没添加热部署坐标之前
Controller层

在这里插入图片描述

浏览器页面

在这里插入图片描述

添加pom.xml坐标

<!--热部署-->
        <dependency>    
            <groupId>org.springframework.boot</groupId>    
            <artifactId>spring-boot-devtools</artifactId>    
            <scope>provided</scope>    
            <optional>true</optional>
        </dependency>
Controller层

在这里插入图片描述
在这里插入图片描述

浏览器页面

在这里插入图片描述
说明热部署已起效

猜你喜欢

转载自blog.csdn.net/weixin_44100455/article/details/88306006