Questions tagged [jhipster]

JHipster is a development platform to generate, develop and deploy Spring Boot, Angular/React/Vue Web applications and Spring microservices.

JHipster is a development platform to generate, develop and deploy Spring Boot + Angular/React/Vue Web applications and Spring microservices.

From the homepage:

Our goal is to generate for you a complete and modern Web app or microservice architecture, unifying:

  • A high-performance and robust Java stack on the server side with Spring Boot
  • A sleek, modern, mobile-first front-end with Angular, React and Bootstrap
  • A robust microservice architecture with the JHipster Registry, Netflix OSS, the Elastic Stack and Docker
  • A powerful workflow to build your application with Yeoman, Webpack and Maven/Gradle

To find more information:

JHipster is Open Source, and all development is done on Github

4838 questions
24
votes
5 answers

In JHipster how to create entity with relationship with User?

I need to create my own entities using the JHipster using the command "yo jhipster:entity myEntity" that have many-to-one relationship with the User entity that comes by default in JHipster. I have tried unsuccessfully to create in the wizard a…
Yann Nicolas
  • 241
  • 1
  • 2
  • 3
22
votes
2 answers

How to replace index.html in Angular 8.3+ depending on environment?

I am working on an application that was set up using jhipster, Spring Boot and Angular I need to set up different public keys for something depending on whether the app is running on dev or prod. I've been sitting in my angular.json for quite some…
Marvin Falkner
  • 221
  • 1
  • 2
  • 3
22
votes
7 answers

Committing fails in Git hooks pre-commit because the node command wasn't found

I generated a JHipster app with Angular and Java, inside of a repository that I had previously made. I then generated some JDL classes with it and the build was successful, but when I tried to commit my changes in GitHub, it threw the following…
James
  • 300
  • 1
  • 4
  • 11
22
votes
3 answers

Add a body to a 404 Not Found Exception

In an REST API generated with JHipster, I want to throw some 404 exceptions. It is normally done with return new ResponseEntity<>(HttpStatus.NOT_FOUND); which actualy results in a 404 response to the xhr request. The problem is that in the front…
luso
  • 2,812
  • 6
  • 35
  • 50
21
votes
5 answers

Multiple roles using @PreAuthorize

To check multiple roles has the method level access I have used @PreAuthorize annotation to check the role @PreAuthorize("hasRole(\"" + AuthoritiesConstants.USER + "\",)" ) How to check multiple roles using @PreAuthorize annotaion?
P Rajesh
  • 326
  • 1
  • 2
  • 11
21
votes
4 answers

JHipster authentication using Postman and JWT

I'd been using the Postman in-tab extension to tests calls to call JHipster resource API's and found that it worked great (JHipster setup to use OAuth2). I authenticated using the JHipster login page, then opened up a new tab with the Postman…
Jose Gulisano
  • 1,281
  • 3
  • 11
  • 12
19
votes
1 answer

No property null found on entity class java.time.ZonedDateTime to bind constructor parameter to

I have the following configuration Configuration @Configuration @EnableMongoRepositories(basePackages = Constants.DATA_SCAN) @EnableMongoAuditing(auditorAwareRef = "auditorAwareService") @Import(value = MongoAutoConfiguration.class) public class…
Saurabh Kumar
  • 16,353
  • 49
  • 133
  • 212
19
votes
1 answer

JHipster configure maven wrapper proxy

According to https://jhipster.github.io/configuring-a-corporate-proxy/ I have set up my proxy settings in /.m2/settings.xml like this : myId true http
Fabien Roussel
  • 225
  • 1
  • 4
  • 10
19
votes
2 answers

The configured limit of 1.000 object references was reached while attempting to calculate the size of the object graph

I have a jhipster project and I added some entities. My services are very slow because this warning message: The configured limit of 1.000 object references was reached while attempting to calculate the size of the object graph. Severe performance…
Vítor Nóbrega
  • 1,219
  • 4
  • 26
  • 53
18
votes
9 answers

Spring Boot Application failed to start with classpath: []

I generated a Spring Boot application with jHipster, added some code from my previous project (non-jhipster project) and tried to run it using IDEA. First I got an error message similar to this, saying "Command line is too long.." (I am running…
szab.kel
  • 2,356
  • 5
  • 40
  • 74
18
votes
3 answers

"No provider for TranslateService" error somehow connected to npm install

With my Angular+Webpack+JHipster+yarn project I get the following error. Then I delete node_modules and run 'npm install`, and it goes away. Then I do this and that and it comes back. How come? I'd like to not have to do that. The TranslateService…
Dan Cancro
  • 1,401
  • 5
  • 24
  • 53
18
votes
2 answers

Jhipster changing generator options

I'm new to jhipster, I was wondering that if once I run the "yo jhipster" is there a way to go back and change some of the option selected? Example to enable Compass/SASS. If I try to install a new generator (by calling "yo" alone), i'm not sure…
eetawil
  • 1,601
  • 3
  • 15
  • 26
18
votes
5 answers

Separating jhipster back-end and front-end into two projects?

I'm trying jhipster with token-based authentication. It works perfectly. Now, I want to run back-end and front-end code on different domains. How can I do this? This is what I tried: Run yo jhipster and select token-based authentication…
musa
  • 1,050
  • 4
  • 15
  • 26
18
votes
2 answers

Spring Security get user info in rest service, for authenticated and not authenticated users

I have a spring rest service, I want to use it for authenticated and not authenticated users. And I want to get user information from SecurityContextHolder.getContext().getAuthentication() if user is authenticated. If I…
fyelci
  • 1,399
  • 2
  • 16
  • 27
17
votes
5 answers

How to set base url for Angular application

I have an Angular application as generated by JHipster. By default, it runs on the root / url, and redirects to /#/. Is there a way to override it to something else? edit Sorry, I have to rephrase my question, as it is misinterpreted in all…
Jeroen Kransen
  • 1,379
  • 3
  • 19
  • 45