Generator-jhipster: spring boot devTools not working. IDEA intellij.

Created on 28 Oct 2015  Â·  8Comments  Â·  Source: jhipster/generator-jhipster

  • Overview of the issue
    I recently updated to jhipster 2.23.0. Made all necessary changes and startup the app with the spring boot plugin. (spring-boot:run). It seems that spring boot devTools are not restarting my application when one file is changed, for example one XxxxxResource file.
    I'm using IDEA Intellij.

  • Motivation for or Use Case

  • JHipster Version(s)
    2.23.0

  • JHipster configuration, a .yo-rc.json file generated in the root folder
    {
    "generator-jhipster": {
    "baseName": "jhipster",
    "packageName": "com.mycompany.myapp",
    "packageFolder": "com/mycompany/myapp",
    "authenticationType": "xauth",
    "hibernateCache": "ehcache",
    "clusteredHttpSession": "no",
    "websocket": "no",
    "databaseType": "sql",
    "devDatabaseType": "mysql",
    "prodDatabaseType": "mysql",
    "searchEngine": "elasticsearch",
    "useSass": false,
    "buildTool": "maven",
    "frontendBuilder": "grunt",
    "enableTranslation": true,
    "enableSocialSignIn": false,
    "rememberMeKey": "",
    "testFrameworks": [
    "gatling"
    ]
    }
    }

  • Entity configuration(s) entityName.json files generated in the .jhipster directory

  • Browsers and Operating System
    Ubuntu 14.04

  • Reproduce the error
    I also have generated one fresh app with the same configuration and seems not to work.

  • Related issues
    No one.

  • Suggest a Fix

Most helpful comment

This is because Eclipse compiles automatically on save. Here's how to get similar functionality in IntelliJ:

http://stackoverflow.com/questions/12744303/intellij-idea-java-classes-not-auto-compiling-on-save

All 8 comments

Are you compiling the file after you change it, or just saving it?

Just saving. I though that devTools detect changes automatically.

I tried in eclipse and it is working on saving, like this example:
https://spring.io/blog/2015/06/17/devtools-in-spring-boot-1-3

This is because Eclipse compiles automatically on save. Here's how to get similar functionality in IntelliJ:

http://stackoverflow.com/questions/12744303/intellij-idea-java-classes-not-auto-compiling-on-save

Thank you very much. Works now.
It's just an idea, but maybe a note in the documentation in the intellij part may help other people, or maybe it's only my fault, anyway, thanks for the light-speed response! xD

@lluiscanals would you consider submitting a PR for documentation on this topic?

Yes of course. I have never done before....but always a first time for all
xD. Tomorrow I will read about how to submit a PR and I'll try! :)
El 29/10/2015 0:25, "Gaël Marziou" [email protected] escribió:

@lluiscanals https://github.com/lluiscanals would you consider
submitting a PR for documentation on this topic?

—
Reply to this email directly or view it on GitHub
https://github.com/jhipster/generator-jhipster/issues/2242#issuecomment-152028346
.

Great :)

@mraible, @lluiscanals Still IntelliJ will not automatically compile the class when the application is running. But hitting Ctrl-Shift-F9 will do the trick.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pascalgrimaud picture pascalgrimaud  Â·  4Comments

DanielFran picture DanielFran  Â·  3Comments

SudharakaP picture SudharakaP  Â·  3Comments

tomj0101 picture tomj0101  Â·  3Comments

frantzynicolas picture frantzynicolas  Â·  3Comments