简体   繁体   中英

JHipster - Maven and Yarn Execution

As per the JHipster documentation, I am supposed to be able to access the application by default at localhost:8080 but the page comes out to be blank. I installed yarn 0.27.5 and issues the command yarn start to start the UI. Now I am able to access the application at localhost:9000. I have to run the mvnw and yarn commands at the same time for the application to be available for use, but it should be just the maven command. Can someone please explain the reason and how do I do this from Eclipse.

You must run both yarn and maven in dev because yarn takes care of building your angular app while hot reloading your changes, maven takes care of building your spring boot app (including generating some code using annotation processors) and spring devtools takes care of hot reloading your java code changes.

I don't use Eclipse but I suppose that running yarn is just a matter of launching from the integrated terminal. Anyway this is not a problem because you have to do it only once thanks to hot reloading. More information about Eclipse here: http://www.jhipster.tech/configuring-ide-eclipse/

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