Scrivio Interview library
ConceptFoundations6 min read · updated 12 November 2026

What does JHipster generate for a new application, and what are the benefits and costs of starting a project with it?

JHipster generates a complete, working application: a Spring Boot backend with security, database access and Liquibase changelogs, a front end in Angular, React or Vue, tests, Docker files and CI configuration. With JDL, its domain language, we describe entities and relationships, and it generates the CRUD code for them across every layer. The benefit is a very fast start with many good practices already wired together; the cost is a large amount of generated code that we now own, an opinionated structure, and upgrades between JHipster versions that can be painful.

Why this question is asked

Some projects need a full application with login, an admin screen and a dozen entities in a few weeks. JHipster promises exactly that, and it delivers, which is why teams keep choosing it. Interviewers ask about it to see whether we can judge a generator honestly: what it saves on day one and what it costs in year three. In this answer, we will recap what JHipster is, look at what it generates, see how JDL turns an entity model into code, and then weigh the benefits against the costs, including a check on the generated dependency versions.

1A Quick Recap: What JHipster Is

JHipster is an open-source code generator, a command-line tool that asks questions or reads a configuration and then writes source code for a full application. It is not a framework that runs inside our application. Once the code is generated, it is ordinary Spring Boot and front-end code in our repository, and the application runs without JHipster itself, apart from a small supporting library.

It can generate a monolith, where the backend also serves the front end, or a set of microservices with a gateway. Its choices are saved in a file called .yo-rc.json, so it can regenerate parts later.

2What It Generates

For a monolith, JHipster writes a Spring Boot backend with Spring Security configured for JWT, session login or OAuth2 and OpenID Connect; Spring Data JPA or another persistence option with the chosen database, such as PostgreSQL; Liquibase changelogs, versioned scripts that create and change the database schema; REST controllers; and an admin area with user management, metrics and health pages.

On the front end, it generates an Angular, React or Vue application with login, navigation and screens for every entity. It also writes tests on both sides, Docker Compose files for the database and other services in src/main/docker, and, on request, CI pipeline files for systems such as GitHub Actions or Jenkins.

Step throughA generated JHipster monolith
  1. Front endAngular, React or Vue; entity screens, login, admin
  2. REST layerone resource class per entity, pagination, validation
  3. Services and securitySpring Security, optional service and DTO layers
  4. PersistenceSpring Data repositories, entities, Liquibase changelogs
  5. Toolingtests, Docker Compose files, CI pipeline, build wrapper

5 layers, from the top down. Step through them one at a time.

All of it is ordinary code in our repository after generation.

3JDL: From an Entity Model to CRUD Code

JDL, JHipster Domain Language, is a small text format for describing the application and its entities. We write entities with their fields and validation rules, relationships between them, and options such as pagination or DTO generation. Then one command generates everything for those entities in every layer.

Java
application {
config {
baseName orders
applicationType monolith
packageName com.acme.orders
authenticationType jwt
prodDatabaseType postgresql
clientFramework react
}
entities *
}
entity Customer { name String required, email String }
entity PurchaseOrder { number String required, placedAt Instant }
relationship OneToMany { Customer{orders} to PurchaseOrder{customer} }
paginate PurchaseOrder with pagination
// jhipster jdl orders.jdl
// -> Customer.java, PurchaseOrder.java, repositories, CustomerResource, PurchaseOrderResource,
// Liquibase changelogs for both tables, React list/detail/edit pages, tests for each resource

Notice that the relationship generates both sides: the foreign key column in the changelog, the JPA mapping, the REST payloads and a customer drop-down on the order edit screen. Writing all of that by hand for ten entities would take days; JDL does it in seconds. The same file can be re-run when the model changes, which updates the generated parts.

4The Benefits: A Fast Start With Good Practices

The main benefit is speed. A small team can have a working, secured, deployable application with real screens on the first day, and spend its time on business logic instead of wiring. The generated code also carries many practices that teams often get wrong when starting from scratch: schema migrations from the beginning, integration tests for each REST resource, sensible security defaults, and health and metrics endpoints.

It is also a good learning resource. A generated project shows how the pieces of a Spring Boot and single-page application fit together, which helps junior developers.

5The Costs: Code You Now Own

Everything JHipster generates becomes our code. A modest application can easily contain tens of thousands of lines we did not write, and we must understand, maintain, secure and upgrade all of it. Some of it, such as admin screens or features we never use, is weight we carry anyway.

The structure is opinionated. Package layout, naming, the shape of REST resources and the front-end architecture follow JHipster's conventions, which may differ from our company's standards. Changing them is possible, but every change makes the next regeneration harder.

Upgrades are the largest long-term cost. A new JHipster version changes the generated code, and its upgrade process regenerates the application and merges that with our modifications in git; the more we have changed, the more conflicts we resolve. Teams that customise heavily often end up leaving the generator behind and maintaining the code as a normal Spring Boot application.

JHipster: what we gain and what we pay
GainCost
Working app with login and CRUD on day oneTens of thousands of lines we now own
Migrations, tests, security wired inOpinionated structure and naming
Consistent code across entitiesPainful upgrades after heavy changes
Docker and CI files includedGenerated versions may differ from our standards

6Check the Generated Versions Against Your Standards

A generator pins its own versions: the Spring Boot version, the Java version, the database driver and the front-end libraries all come from the JHipster release we used. These may lag behind or differ from our company's platform BOM and approved versions. Before adopting the generated code, we compare its build file with our standards, align the Boot and Java versions, and make sure security scanning in our pipeline accepts its dependencies.

7Follow-up questions

Is JHipster a good choice for a long-lived product?

It can be, if the team accepts JHipster's structure and keeps modifications modest, so that upgrades stay manageable. For a product that will be heavily customised, many teams use JHipster to start and then deliberately stop regenerating, treating the code as a normal Spring Boot application from then on. Deciding this early avoids painful upgrades later.

Does a JHipster application depend on JHipster at runtime?

Only lightly. The generated backend uses a small JHipster library with helpers for things like configuration and pagination headers, but the application is a normal Spring Boot application. The generator itself is needed only to generate or regenerate code.

How is JHipster different from Spring Initializr?

Initializr generates an empty, minimal project with a build file and a main class. JHipster generates a full application, including domain code, front end, security and tooling. Initializr leaves every design decision to us; JHipster makes most of them for us.

8Conclusion

In this answer, we saw that JHipster is a code generator that produces a full application: a Spring Boot backend with security, persistence and Liquibase changelogs, an Angular, React or Vue front end, tests, Docker and CI files. JDL describes entities and relationships and generates CRUD code across every layer. The benefit is a fast start with many good practices built in; the costs are a large body of generated code we own, an opinionated structure, painful upgrades after heavy modification, and versions that must be checked against our platform standards.

What to say in the interviewAbout 90 seconds aloud

Open with

JHipster is a code generator that produces a complete application rather than an empty project. For a monolith I get a Spring Boot backend with Spring Security, say JWT or OIDC, Spring Data JPA with PostgreSQL, Liquibase changelogs, REST resources and an admin area, plus an Angular, React or Vue front end, tests on both sides, Docker Compose files and, if I ask, CI pipelines.

Then, if they want more

The domain comes from JDL: I describe entities, fields, validations and relationships in a text file, run jhipster jdl, and it generates the entity, repository, REST resource, changelog, screens and tests for each one, including both sides of every relationship. The benefit is speed and a lot of good practice from day one: migrations, integration tests, security defaults.

The cost is that all of it is now our code, often tens of thousands of lines, in JHipster's structure rather than ours. Upgrades are the big one: the upgrade process regenerates and merges with our changes, so heavy customisation means many conflicts.

And the generated versions come from the JHipster release, so I would check the Boot, Java and library versions against our platform standards before adopting it. I like it for fast starts where we accept its conventions, and I decide early whether we keep regenerating or treat it as normal code.

About this answer

Last updated
12 November 2026
Checked
Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the documentation below. What the checks cover
Where the question comes from
Written by Scrivio for practice. It is not taken from an interview.
Official documentation
Spring Boot reference
Report an issue with this answer

Copy the line below and send it to the author with what you found. It carries the address of this page.

Issue with "What does JHipster generate for a new application, and what are the benefits and costs...": https://scrivio-interview-library.netlify.app/spring-boot/developer-experience/1903618994/