0

我使用以下热重载指令运行 JHipster 示例应用程序:

-javaagent:spring_loaded/springloaded-jhipster.jar -noverify -Dspringloaded=plugins=io.github.jhipster.loaded.instrument.JHipsterLoadtimeInstrumentationPlugin

我将以下内容插入到 com.mycompany.myapp.web.rest.AccountResource 的 getCurrentSessions() 中以测试热重载:

log.debug("Getting the current open sessions...");

我没有看到调试消息出现。我在 IntelliJ IDEA 12.1.6 中运行它。

4

1 回答 1

0

更改代码后尝试 ctr+f9 或 cmnd+f9(如果您在 Mac 上)。它应该告诉 Intellij 刷新您的 jar,您应该会看到您的日志

于 2014-09-12T11:35:29.933 回答