Liudong1999
V2EX  ›  问与答

关于 spring-boot 及 idea 配置问题

  •  1
     
  •   Liudong1999 · Feb 22, 2019 · 2272 views
    This topic created in 2674 days ago, the information mentioned may be changed or developed.

    一个关于 spring-boot 的项目,我是用 idea 做为我的编辑器

    现在遇到了一点问题,求各位大佬解答

    1. 模板引擎用的是 thymeleaf
    2. 热部署用的是 spring-boot-devtools

    问题就是,每次修改完 html 页面,不会立马生效,而是需要等待自动重启,虽然只有几秒,但是感觉很难受啊 spring.thymeleaf.cache=false 这个也配置过了,修改 html 后还是会自动重启

    我希望修改 html 后,不自动重启,并且页面能够及时刷新

    希望 v 友们能帮我解决这个问题

    3 replies    2019-02-22 18:25:31 +08:00
    a123321456b
        1
    a123321456b  
       Feb 22, 2019 via Android
    修改完后要按一下编译 在右上角那个榔头一样的图标
    littleEight
        2
    littleEight  
       Feb 22, 2019
    @a123321456b 右上角哪里有榔头。。。
    a123321456b
        3
    a123321456b  
       Feb 22, 2019
    @littleEight menu -> build -> build project 或者 ctrl+f9 当然也可能不是这个问题就不知道了...
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2376 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 15:49 · PVG 23:49 · LAX 08:49 · JFK 11:49
    ♥ Do have faith in what you're doing.