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 目录会被删除。。

 

相关文章:

  • 2021-11-19
  • 2021-06-25
  • 2021-12-04
  • 2021-12-21
  • 2021-04-11
  • 2021-11-22
  • 2021-11-19
  • 2021-11-04
猜你喜欢
  • 2022-12-23
  • 2022-01-20
  • 2022-01-17
  • 2021-12-24
  • 2021-11-19
  • 2022-12-23
  • 2021-04-19
相关资源
相似解决方案