Questions tagged [jhipster]
JHipster is a development platform to generate, develop and deploy Spring Boot, Angular/React/Vue Web applications and Spring microservices.
4,849
questions
0
votes
0
answers
97
views
Configure multiple OpenAPI groups in jhipster application
Is it possible to add multiple OpenAPI groups to a jhipster generated application.
@Configuration
@AllArgsConstructor
@AutoConfigureBefore(SpringDocConfiguration.class)
@AutoConfigureAfter(value={ ...
0
votes
1
answer
292
views
Problems when importing a CSV file and persisting information in a database using Java
I'm having a problem with a CSV data import code into the database. I'm using Java 11 with SpringBoot 2.7.3 REST API
I have a Report class that has a Many-To-Many one-way relationship with the ...
0
votes
0
answers
102
views
Spring Boot / JHipster giving "connection refused" from keycloak (behind nginx)
My Spring Boot (Jhipster) app using Keycloak authentication is running great locally.
But it needs to run behind nginx and SSL certs on the linux box.
On the linux implementation, Jhipster seems to ...
0
votes
1
answer
62
views
jhipster - generator-jhipster compilation from main branch
Trying to build from source main branch.
git clone https://github.com/jhipster/generator-jhipster.git --depth=1
cd generator-jhipster
npm i
npm link
After that I got this error in git bash
$ jhipster ...
0
votes
0
answers
40
views
Add second webapp application in JHipster Gateway
Is there a way to add second front end application in JHipster Gateway besides the one that is by default in src/main/webapp?
This application was created to have server and react client, but we want ...
1
vote
0
answers
229
views
How to integrate Keycloak with Flutter application?
I'm trying to link my Flutter mobile app with a JHipster backend that uses Keycloak for authentication.
Does anyone have experience with integrating Keycloak with a Flutter application?
I've tried ...
0
votes
1
answer
87
views
How do I create a Jhipster relationship between an entity and two other entities using the same field?
I have three entities;
entity DamagedItems { }, entity Recipe { }, entity RawProduct { }.
In a scenario where the DamagedItems should capture both Recipes and RawMaterial in one field, let's say ...
0
votes
0
answers
22
views
Jhipster is terminated automatically in Eclipse
While running the maven jhipster application in eclipse. Application is termintaed automatcically, no logs showed.
Its my first time working with Jhipster. Please help me !!
0
votes
1
answer
53
views
What is the importance of the `app` sub-generator in a blueprint
I've got a mostly working blueprint for internal use-cases. Lots of opportunity left. However, the need or use of the app sub-generator is not clear during blueprint generation. It is is one of many ...
0
votes
0
answers
14
views
How to decouple the security layer of Jhipster?
It would be great to have the ability to decouple the security layer from Jhipster. This could be done from the wizzard command "jhispter" or from the web https://start.jhipster.tech/
There ...
0
votes
0
answers
46
views
Jhipster gateway status is down when register to jhipster registry v 7.9.3
When I create jhipster gateway by jhipster version 7.9.3 and then I start it, I saw a log status Saw local status change event StatusChangeEvent [timestamp=1677903081146, current=DOWN, previous=UP]
...
0
votes
1
answer
82
views
How to define rewrite rules for a jhipster application with angular frontend running productive as jar with embedded tomcat?
One needs to configure some rewrite rules for Angular SPAs to redirect requests to the index.html: https://angular.io/guide/deployment#server-configuration
We use the Jhipster generator (Spring Boot) ...
0
votes
2
answers
69
views
How exactly do templates resolve in a blueprint
Frustratingly probably a simple resolution, but I cannot see the problem I'm having with my new templates in my custom blueprint, they are not found, but they are there.
Generated a blueprint template ...
0
votes
0
answers
75
views
Filter json field
i have generated o jhipster project using a jdl file (with filters):
entity MyEntity {
name String,
content String
}
In @Entity class, I modified the "content" attribute to have a ...
0
votes
0
answers
30
views
Using custom blueprint cannot reach internal registry with internal CA
I have not seen this discussed yet.
I'm developing a new blueprint. However, during execution of jhipster --blueprints my-blueprint it fails on the prompt
Would you like to install other generators ...
1
vote
1
answer
61
views
When do I need to run update-snapshot in blueprint development
I'm developing a new blueprint for internal teams as a kickstarter for common requirements. I'm attempting to put this blueprint on a pipeline in GitLab—not to be confused with GitHub.
Should the ...
1
vote
0
answers
50
views
Filtering by user with Elasticsearch for more secure endpoints
I'm trying to upgrade a JHipster v5 app to v7.9.3. With JHipster 5, I was able to secure Elasticsearch endpoints by adding a filter by the user's login.
public ResponseEntity<List<BloodPressure&...
0
votes
1
answer
73
views
Can I generate the application according to a package structure that I have determined in Jhipster?
I want to generate an app with a package structure and project directories that I have determined in Jhipster. Can I generate the application according to a package structure that I have determined in ...
0
votes
0
answers
74
views
Angular Hot Module Replacement not working for proxied paths
I am trying to get Hot Module Replacement to work.
When running: npm install && ng build --configuration development && ng serve --hmr no error is thrown. However, all the paths ...
0
votes
0
answers
40
views
I have an error while creating Jhipster Microservice app
**
ERROR! Error: spawn git ENOENT
at ChildProcess._handle.onexit (node:internal/child_process:283:19)
at onErrorNT (node:internal/child_process:476:16)
at process.processTicksAndRejections (node:...
1
vote
1
answer
44
views
webpack files - Migration from [email protected] to [email protected]
I don't find anymore this webpack configuration in new jhipster project generated with latest version. Shall I delete or keep these part of codes ?
module: {
rules: [{
test: /\.(j|...
-1
votes
2
answers
71
views
Is it possible to create the jdl file from user input and then generate classes from it? I would be very happy if you could give an example
I'm new to jhipster. Is it possible to create the jdl file from user input and then generate classes from it? I would be very happy if you could give an example. I want to create a web app, basically ...
0
votes
0
answers
30
views
One-to-many enum data type?
I need to implement an entity class with an attribute of a collection of enum data. I can't find any related JDL document on the subject. Is it something doable with JDL or do I need to change the ...
0
votes
0
answers
29
views
If destination host is not present in Angular requests, JHipster sets it as localhost:4201
In my auth-jwt.service I have:
return this.http.post(SERVER_API_URL + api/authenticate, data, { observe: 'response' }).pipe(map(authenticateSuccess.bind(this)));
I've set SERVER_API_URL as '' (empty).
...
2
votes
1
answer
368
views
Cannot find module 'E:\husky\lib\bin.js'
I am using windows to bootstrap a Springboot backend using jhipster. I am running into the error below concerning Husky for git hooks.
> eims-bac[email protected] prepare
> husky install
The system ...
0
votes
0
answers
65
views
How is the frontend served in JHipster Production?
I am writing a small thesis about a project where we used JHipster. I am currently trying to explain how the deployment with JHipster works. I already found some great info how the Backend is deployed ...
0
votes
0
answers
63
views
Unauthorized: Full authentication is required to access this resource
When i request my registry url i see this message "Unauthorized: Full authentication is required to access this resource".
NB: I start my keycloak and my registry before)
0
votes
0
answers
104
views
JHipster: Persistent entities should not be used as arguments of "@RequestMapping" methods
guys!
I've generated an application using JHipster v7.9.3. However, when this app was evaluated by my SonarQube server, it failed.
One of the most common critical issues is the: RSPEC-4684 Persistent ...
0
votes
0
answers
32
views
jhipster bootswatch yo generator not installed
Good morning,
i want to add bootswatch module to change theme of jhipster project as needed. Following the guide https://www.npmjs.com/package/generator-jhipster-bootswatch I installed the npm install ...
0
votes
1
answer
124
views
Can't resolve module JHipster Micro-frontend
Hi I am running the command to generate microfrontend applications/microservices. I am running into the following errors when deploying my gateway application:
[INFO] ./src/main/webapp/app/app-...
0
votes
2
answers
318
views
Migration spring-boot from 2.1.8.RELEASE to 2.7.7- keeping spring-fox dependencies
I migrated a jhipster application generated with jhipster version 6.3.0.
Everything is right except swagger. I don't want for now to migrate to springdoc. I just kept springfox.
I get this exception ...
-1
votes
1
answer
130
views
problem with dependencies in my JHIPSTER application
I generated a jhipster project but I have problems with the built-in dependencies (priemeng and angular material)jhipster 7.0.1, my package.json
"dependencies": {
"-": "0....
0
votes
0
answers
30
views
JHipster 7.x missing modules?
When generating an application with version 7.9.3, during the questions to configure which modules to install, the modules for integrations with social networks and the type of cache do not appear.
...
0
votes
1
answer
447
views
Facing errors when try to build Jhipster app for production
When i run the command: mvnw -Pprod package -DskipTests i got theses errors:
PROJET_DIRECTORY>npm run webapp:prod
> [email protected] webapp:prod
> npm run clean-www && npm ...
0
votes
0
answers
158
views
JHipster - Keycloak - React: I am always getting redirected to localhost:9000/oauth2/authorization/oidc when trying to register a new user
I have an app built with JHipster 7.8, spring, react, keycloak.
When I try to register a user, in debug mode, it always call UserService.syncUserWithIdp... In the browser it seems to infinitly ...
0
votes
1
answer
252
views
JHipster Version 7.9.3 Using Local Blueprint Gives npm ERR! 404 Not Found
I use JFrog to manage my npm repository and have already created a virtual directory in which the blueprint exists (as part of the local directory). I have the following in my ~/.npmrc:
//...
0
votes
0
answers
219
views
Jhipster Auditing Entities
Hello I am using Jhipster to generate my backend code and I'm trying to add auditing fields to my entities, I am aware that my custom entity should extend the AbstractAuditingEntity class, but the ...
3
votes
1
answer
65
views
Internal distribution of JHipster blueprints and themes
Q. How can the generator-jhipster leverage an internal distribution point, e.g., Nexus NPM, &tc. for jhipster blueprints?
Background
We are adopting JHipster for several major application and ...
0
votes
2
answers
72
views
How to create columns in JDL, that only accepts two values, Y or N? Y meaning Yes and N meaning No
entity Platform {
platformName String required maxlength(100),
onPermiseFlag String maxlength(1),
cloudFlag String maxlength(1)
}
The column 'onPermiseFlag' and 'cloudFlag' can have only ...
0
votes
1
answer
105
views
Passing arguments to a dependent task in gradle
When I run ./gradlew bootRun, I'd like for the npmInstall task that it depends on to run with the "--force" or "--legacy-peer-deps" arguments.
I tried using ./gradlew bootRun ...
0
votes
0
answers
170
views
How to make jhipster react-js validateField select dropdown filterable?
I have a small Jhipster-generated application. And the application frontend client is React.
The application has a relationship with another entity and on create/update page there's a select dropdown ...
0
votes
1
answer
201
views
I'm trying to run Docker container from built image but get registry error
I cannot get the registry container for a Jhipster app to run. I'm following the instructions from https://www.jhipster.tech/docker-compose/#7 I'm at the step of executing the command
docker-...
0
votes
1
answer
57
views
How to create multiple FK from one table reference same column of other table using JDL?
There are two tables Period_Type & Product_Subscription
Period_Type
->ID
->Period_Type_Name
---------------------------------------
Product_Subscription
-> RENEWAL_PERIOD_TYPE_ID
-> ...
0
votes
0
answers
59
views
Seperating Jhipster admin and angular project into to frontend with mvn clean install
I have an Jhipster Monolithic application, where when I use mvn clean install I build my frontend into the target folder and then can simulteanously start my backend and frontend reaching them with ...
3
votes
1
answer
2k
views
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/util/namespace' is not defined by "exports"
When I enter jhipster in the cmd command, I get an error Package subpath './lib/util/namespace' is not defined by "exports" in C:Program Filesnodejsnode_globalnode_modulesgenerator-...
0
votes
0
answers
33
views
About the project generator-jhipster-flutter
This generator is not inside the official JHipster GitHub, does anyone know why?
1
vote
0
answers
65
views
JHipster: Invalid values not being detected
I was using JHipster, with its autogenerated code. And ran into the following issue regarding detecting whether the request is valid or not based on the following:
I have a schema of the following:
...
0
votes
0
answers
338
views
How to fix jhipster: No MethodInvocation found: Check that an AOP invocation is in when using repository
I have a jhipster generated gateway, where I want to add a new method to an existing repository (generated with jhipster entity command) This repository is extending by default R2dbcRepository. So far ...
0
votes
0
answers
162
views
How to solve ArchTest violation of Config Layer accessed from Service Layer
My project violates a given structure test. I don't understand why the "config" layer must not be accessed by any other. Of course, I could use @Value annotation to directly access some K,V ...
0
votes
0
answers
86
views
How to add new entities to frontend and backend?
We have separated frontend and backend and used the jhipster --skip-server command to create frontend and used jhipster --skip-client to create backend service.
Now we would like to add more entities ...