zoukankan      html  css  js  c++  java
  • springboot项目更改代码后实时刷新问题

    在spring boot使用的过程中, 发现我修改了静态文件, 前台刷新后, 没有任何变化, 必须重新启动, 才能看到, 这简直不能让人接受.

    那有什么方法来解决这个问题呢.

    Baidu之后, 得到了想要的答案, 在这里记录下来.

    1. pom.xml 修改

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

    在pom.xml文件中, 加入此配置, 可以更新后台修改的静态文件

    2. file->settings

    在上图中, 将红色圈中的部分, 选中即可

    3. shift + ctrl + alt + /

    通过以上快捷键, 会弹出Maintenance弹窗, 选择第一个

    转自:https://blog.csdn.net/qq_15870133/article/details/78732680

  • 相关阅读:
    c++ struct 使用
    c++数组、字符串操作
    c++ List、Vector、Stack、Queue使用
    十三、哈希表
    十二、234树
    十一、红黑树
    十、哈夫曼编码
    九、二叉树
    八、高级排序
    七、递归
  • 原文地址:https://www.cnblogs.com/sanduweiliangxtx/p/10124129.html
Copyright © 2011-2022 走看看