Hot swapping in Spring Boot

前端 未结 12 1577
别那么骄傲
别那么骄傲 2020-11-29 03:41

I\'ve been doing a P.O.C with Spring Boot.

So far it\'s been going really good and promising, but there\'s one major drawback: I\'m using an embedded server (i.e.,

12条回答
  •  情深已故
    2020-11-29 04:03

    In Intellij, I can get this behavior. When the program is running in debug mode, select Run > Reload Changed Classes

    Note: After Intellij completes the action, it might say Loaded classes are up to date. Nothing to reload. This is misleading, because it actually DID reload your classpath resources.

    My environment/setup includes:
    Intellij 13
    Embedded Tomcat
    Run/Debug configuration of type 'Application' (which just uses a main class)
    Serving static html, css and js (no jsp)

提交回复
热议问题