简体   繁体   中英

Java hot reload in JHipster

I have the JHipster sample app running with the following hot reload instruction:

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

I inserted the following into getCurrentSessions() in com.mycompany.myapp.web.rest.AccountResource to test the hot reloading:

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

I'm not seeing the debug message show up. I'm running this in IntelliJ IDEA 12.1.6.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM