• springboot html修改后不重启生效


    亲测有效,感谢大神

    Springboot项目修改html后不需要重启---springboot项目的热部署

    一、spring-boot-devtools

      在pom中直接引入依赖

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

      设置以下两项(第一项如已设置直接设置第二项)

        1) “File” -> “Settings” -> “Build,Execution,Deplyment” -> “Compiler”,选中打勾 “Build project automatically” 。

     2) 组合键:“Shift+Ctrl+Alt+/” ,选择 “Registry” ,选中打勾 “compiler.automake.allow.when.app.running” 

    转载于:https://www.cnblogs.com/duwamish/p/9836000.html

    其他参考:

    https://blog.csdn.net/adgjlm111/article/details/78107782

    javaWeb项目intellij idea更改js文件或者jsp需重启项目

    我们注意一下红框,一定要打钩,自动build项目,但是这还不算完,我们spring boot的资源文件一般是放在resource里面的,但是resource里不包含js文件的参数,这需要我们自己加上,如下图:







    ok,这就行啦,修改js文件后会立马生效不用重启

    https://blog.csdn.net/baidu_29092471/article/details/58596505

    https://blog.csdn.net/banjing_1993/article/details/80860508

  • 相关阅读:
    HTML5 JSDOM
    svn 基本操作
    Flex布局
    git上传布置代码 git优势
    jsonp, json区别
    require.js 模块化简单理解
    @vue/cli 3 安装搭建及 webpack 配置
    npm 常用命令 使用命令删除 node_modules 包
    package.json字段分析
    rem适配方案
  • 原文地址:https://www.cnblogs.com/libin6505/p/15401089.html
Copyright © 2020-2023  润新知