JHipster release 2.5.0

JHipster gives you Spring Boot + AngularJS working together in one handy Yeoman generator.


Looking for the (old) JHipster v2.x documentation? It’s Here!


The big news in this release is our Gatling support, for doing performance tests of the generated entities!

Our REST interfaces have also been improved:

  • The generated entities now use the PUT verb (warning this could break some of your existing front-end code)
  • The POST verb better follow HATEOAS principles and sends back the “location” header, giving back the URL of the generated entity

We are also going to improve the “GET” verb and add pagination in a future release: of course when you do performance tests with Gatling, not having pagination is an issue! If you have some feedback on using pagination, thank you for sharing it! Here is our current roadmap:

  • On the backend, follow the principles used by the GitHub API. You can have more information on doing pagination on a REST API on this best practices document
  • Maybe we will use the pagination support from Spring Data, but we are not sure about this yet
  • On the front-end, we will add ngTable support

The User entity, which is a special entity handled by JHipster, has been modified so you can do many-to-one relationships to it:

  • This is a common requirement to have some entities linked to the user. For example, many “orders” could be linked to one “user”.
  • As usually you will want to restrict those entities to the current user, we also provide a helper Repository method, called findAllForCurrentUser() which will be automatically generated
  • If you have a look at this method, you will see that we use the Spring Security Principal in a Spring Data JPA query. This is because we added SpEL support in Spring Data JPA!

一如既往, you can check all the closed tickets here.



npm update -g generator-jhipster


yo jhipster


如果您发现这个版本的任何问题, 请随时联系我们: