windows 创建文件夹 链接

 mklink /j "G:\github\lvYouBaoBiao\ruoyi-admin\target\classes\static" "G:\github\lvYouBaoBiao\ruoyi-admin\src\main\resources\static"

 

创建链接后,spring boot 修改静态资源会立刻生效

如果用了 jrebel,需要修改 rebel.xml

 

<classpath>
    <dir name="G:/github/lvYouBaoBiao/ruoyi-admin/target/classes/com">
    </dir>
    <dir name="G:/github/lvYouBaoBiao/ruoyi-admin/target/classes/mapper">
    </dir>
</classpath>

 

原来的 classes 要修改为当前的目录,因为 jrebel 会删文件。。导致 static 和 templates 目录会被删除。。

 

posted on 2019-12-26 13:21  正义的伙伴!  阅读(793)  评论(0编辑  收藏  举报

导航

//增加一段JS脚本,为目录生成使用