Questions tagged [jhipster]
JHipster is a development platform to generate, develop and deploy Spring Boot, Angular/React/Vue Web applications and Spring microservices.
4,699
questions
158
votes
13
answers
162k
views
Error: ENOENT: no such file or directory, scandir
I scaffold an app using jhipster which is microservice gateway using cassandra db and using maven to build which was building fine after scaffold.i ran gulp command to for the live reload of ui.
i ...
125
votes
19
answers
168k
views
How to set the max size of upload file
I'm developing application based on Spring Boot and AngularJS using JHipster.
My question is how to set max size of uploading files?
If I'm trying to upload to big file I'm getting this information ...
51
votes
7
answers
53k
views
I am trying to set maxFileSize but it is not honored
I am developing an application utilizing JHipster. I have added the following to my application-dev.yml file:
spring:
profiles:
active: dev
multipart:
maxFileSize: -1
But I ...
49
votes
7
answers
63k
views
How to modify existing entity generated with jhipster?
I use jhipster generator to create a projet. I've generated some entity manually following the information provided in jhipster documentation :
If you prefer (or need) to do a database update ...
49
votes
5
answers
26k
views
Communication between two microservices
I am creating a project with microservices architecture. And I created two microservices.
One of them is for product entity, the other is for bill entity. They have their own endpoints and they are ...
44
votes
3
answers
85k
views
Spring security authorize request for url & method using HttpSecurity
Is there any way to authorize post request to a specific url using org.springframework.security.config.annotation.web.builders.HttpSecurity ?
I'm using HttpSecurityas:
@Override
protected ...
36
votes
5
answers
53k
views
Gradle build fails on Lombok annotated classes
I have a JHipster project in which I have added dependency for Lombok in build.gradle:
compile group: 'org.projectlombok', name: 'lombok', version: lombok_version
And I have the Lombok plugin ...
34
votes
7
answers
47k
views
Unable to register MBean [HikariDataSource (HikariPool-0)] with key 'dataSource'
I am getting below error in prod mode for (Java8+Oauth2+MySql+Hazelcast+no clustered http sessions) combination. Dev mode has worked fine.
Unable to register MBean [HikariDataSource (HikariPool-0)] ...
34
votes
3
answers
24k
views
How to add self signed SSL certificate to jHipster sample app?
I have create sample jHipster app. Now I want to add self signed SSL certificate and test in local to have a access to https. How to achieve this?
33
votes
4
answers
34k
views
Angular 7 : Injected service is undefined
I tried to inject AccountService in the LoginService but it won't ,the accountService is undefined but in the other hand the authServiceProvider is defined .
Contrarily it injected perfectly in ...
31
votes
1
answer
16k
views
How to deploy microservices on Heroku
I have read a lot about microservices, and would like to build my app with that approach. What I know so far is that I nead some services like:
load balancer - to deal with every request, and push it ...
28
votes
8
answers
38k
views
How to delete an entity after creating it using jhipster?
I have created 3 entities (Author, Book, Library) using "yo jhipster:entity" command but in one entity (Library) I had a ManyToMany relationship (to Book) but that caused "mappedBy reference an ...
27
votes
3
answers
8k
views
why I have HTTP 403 from repo spring?
I have a jhipster project which deploy on heroku with gitlab since several months
Since yesterday, I can not deploy new version because I have this error
FAILURE: Build failed with an exception.
32 * ...
26
votes
5
answers
12k
views
jhipster- how to add a new role
I am trying to add a new role (ROLE_REPORTS) on a project generated using JHipster. I can see the tables that need to be updated (role, authority and role_authority mapping), but I am not sure how to ...
23
votes
4
answers
14k
views
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 ...
23
votes
2
answers
8k
views
Customizing JHipster
Is it be possible to customize/extend JHipster for an organization ?
By that, I mean having a local version that creates some projects with features that are specific to an organization ? For example,...
19
votes
4
answers
17k
views
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,...
19
votes
1
answer
3k
views
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(...
18
votes
2
answers
10k
views
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'...
18
votes
8
answers
46k
views
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, ...
18
votes
2
answers
4k
views
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 ...
18
votes
4
answers
52k
views
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 ...
17
votes
7
answers
14k
views
How to update the JHipster project after updating JHipster generator?
I updated my JHipster installation as per this page by running the command
npm update -g generator-jhipster
But to update my application I am not sure where should I run the next command yo ...
17
votes
3
answers
33k
views
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 ...
17
votes
2
answers
15k
views
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 ...
17
votes
5
answers
12k
views
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 ...
17
votes
4
answers
6k
views
What is .net alternative to jhipster
Which framework provides similar features to .Net as jhipster does for Java. I understand that there are separate libraries that can be brought together to work as the solution, but is there something ...
16
votes
1
answer
11k
views
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 :
<proxies>
<proxy>
<id>myId</...
16
votes
5
answers
5k
views
Application generated with JHipster 4 returning blank page on 8080, but not on 9000
I've create an application with JHipster v4. When I make a request on port 8080 it is returning a blank page. If I use yarn start, and I make a request to 9000 port, it is answering correctly.
Any ...
16
votes
2
answers
3k
views
JHipster: CORS fails on form login (actual request, not pre-flight)
I would like to extend my monolithic setup of jHipster with a second front-end application which accesses the same API from a different URL. As a first step, I've enabled CORS in the application.yml ...
15
votes
5
answers
32k
views
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 ...
15
votes
2
answers
15k
views
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 ...
14
votes
6
answers
23k
views
Spring-boot slow to start
When I launch my jhipster app using "mvn spring-boot:run", it takes up to 60 seconds to start...
First part of my log is :
[INFO] Scanning for projects...
[INFO]
[INFO] -------------------------------...
14
votes
6
answers
70k
views
Error creating bean with name 'liquibase' defined in class path resource ... /config/DatabaseConfiguration.class
I have this annoying error when starting Embedded Tomcat on my jHipster Project. Spent a lot of time trying to resolve it but can't figure out why it's happening. It started happening after updating ...
13
votes
5
answers
39k
views
jhipster - gyp verb `which` failed Error: not found: python2
Below is the error that I get, when I try to generate a new project with JHipster:
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb `which` failed Error: not found: ...
13
votes
4
answers
7k
views
Steps to integrate PrimeNG with JHipster
We have been trying to incorporate PrimeNG components into a JHipster (angular 4) generated project with no success. After download and install PrimeNG into our project, we are able to import classes ...
13
votes
3
answers
20k
views
"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 ...
13
votes
4
answers
28k
views
lombok.javac.apt.LombokProcessor could not be initialized
my question somewhat relates to this post: Gradle build fails on Lombok annotated classes
I am using jhipster and lombok 1.16.18 with a build.gradle as follows
...
apply plugin: 'net.ltgt.apt'
...
...
13
votes
3
answers
9k
views
How to create unique constraint for 2 columns in JDL-Studio?
I have following entity configuration:
entity AirplaneModelSeat {
id Long,
seatNo String required
}
relationship ManyToOne {
AirplaneModelSeat{modelId(model)} to AirplaneModel
}
...
13
votes
2
answers
4k
views
Angular HTTP Error Empty Untyped Response
I have an Angular/JHipster application that makes HTTP calls. I want to do error handling in my Observable subscriptions.
However, when the first time the error handler is invoked, the err object is ...
12
votes
8
answers
34k
views
Mapstruct generated class not being injected by Spring in JHipster web app
I'm developing a web app created with JHipster v2.20.0.
Using Eclipse 4.5.0 WTP as IDE.
The Spring configuration is annotation based.
I've just merged this pull with our code.
When I try to run the ...
12
votes
4
answers
22k
views
How to solve RequestTooBigException, connection terminated as request was larger than 10485760?
I'm trying to upload a 6MB file to my JHipster app server. However, I get the following error. Where can I find the related configuration?
io.undertow.server.RequestTooBigException: UT000020: ...
12
votes
4
answers
11k
views
add attributes to user entity in jhipster
I want to add some attributes to the user entity, when I googled about it, I found a similar question :
How to modify existing entity generated with jhipster?
when I followed the steps in this post, ...
12
votes
3
answers
7k
views
How to create a many to many relationship with extra columns in jhipster?
The jhipster doesn't support create many to many relationships with extra fields.
What is the best way to create many to many association with extra columns in jhispter? Should i create a two one-to-...
12
votes
1
answer
4k
views
Configuring elasticsearch in JHipster project using prod yml
I have an application built using the Jhipter generator, which is based on Spring Boot. The latest version of Jhipster allows you to include Elasticsearch as an option, so I have an application which ...
12
votes
3
answers
4k
views
Should I use `src/main/webapp` to serve static content with Spring Boot?
The documentation of Spring Boot states:
Do not use the src/main/webapp directory if your application will be
packaged as a jar.
But surprisingly the Spring Boot Sample for static web files is ...
11
votes
3
answers
20k
views
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 ...
11
votes
4
answers
9k
views
Check Sum error in JHipster when editing an existing entity generated using the entity wizard
I am using Postgresql for my db and created all the entities using the JHipster entity wizard. When I try to make any changes like adding/removing fields, relations to an existing entity I am getting ...
11
votes
4
answers
4k
views
Deploying a JHipster Application to Heroku
Has anyone had luck deploying a JHipster application to Heroku? I think a custom buildpack is required, but I'm not 100% sure, as I'm new to Heroku.
11
votes
3
answers
12k
views
jhipster: How to create a one-to-many relationship with user entity?
I have created my domain using jhipster-uml JDL script.
Now I want to establish a O2M from User to an an existing entity (company).
Is there a way to do that via a JDL script?
The script would need to ...