jhipster

Spring security authorize request for url & method using HttpSecurity

和自甴很熟 提交于 2019-12-18 12:12:15
问题 Is there any way to authorize post request to a specific url using org.springframework.security.config.annotation.web.builders.HttpSecurity ? I'm using HttpSecurity as: @Override protected void configure(HttpSecurity http) throws Exception { http .addFilterAfter(new CsrfCookieGeneratorFilter(), CsrfFilter.class) .exceptionHandling() .authenticationEntryPoint(authenticationEntryPoint) .and() .rememberMe() .rememberMeServices(rememberMeServices) .key(env.getProperty("jhipster.security

Application generated with JHipster 4 returning blank page on 8080, but not on 9000

这一生的挚爱 提交于 2019-12-18 11:27:22
问题 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 idea? 回答1: I had the same issue with JHipster application bringing up the blank page on port 8080 when ran with ./mvnw in dev mode. I was able to resolve this by running: yarn install && yarn webpack:build After it finishes, the application shows normally in dev mode on port 8080. 回答2: I had the

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

烈酒焚心 提交于 2019-12-17 22:42:55
问题 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 option: Welcome to the JHipster Generator ? (1/13) What is the base name of your application? jhipster ? (2/13) What is your default Java package name? com.mycompany.myapp ? (3/13) Do you want to use Java 8? Yes (use Java 8) ? (4/13) Which *type* of

JHipster : Registering a user with additional information

自古美人都是妖i 提交于 2019-12-17 20:45:26
问题 I am developping an application using JHispter 3.12.2. Since I needed more information than what JHipster provides, I created an entity UserExtra containing two Strings : a phone number and a skype address. I linked this entity to the JHI_User in a One to One relationship. Now the problem I am facing is, when a user is registering, I want to create a new UserExtra associated with the registered User. To achieve that, I have tried several things on the client side. The way the standard

Steps to integrate PrimeNG with JHipster

£可爱£侵袭症+ 提交于 2019-12-17 18:57:18
问题 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 but when we include the corresponding tags into templates nothing is drawn. We have tested several of the PrimeNG components. Also we have done the imports in app.module, etc. I would like to be more concrete, but no error is displayed anywhere. Do you have any hint on how work with PrimeNG and

getting the current logged in user in JHipster

喜欢而已 提交于 2019-12-17 16:55:35
问题 I am building a jhipster application. and I am trying to get a list of objects based on the current logged in user. there are a few simple examples online such as jhipster blog demo that describe how to get the current user's blogs by the current logged in user--and I wanted to mimic this. in the demo there isa repo method: @Query("select blog from Blog blog where blog.user.login = ?#{principal.username}") List<Blog> findByUserIsCurrentUser(); I have tried to mimic this with the following:

Oauth2 login fails for Spring boot application using Keycloak

十年热恋 提交于 2019-12-13 17:23:30
问题 I have a simple Spring boot application (generated using jhipster 5.7.2). No service discovery. Just a simple monolith. It is using Keycloak for auth. Here is the configuration I selected for my application: { "generator-jhipster": { "promptValues": { "packageName": "com.mycompany.myapp", "nativeLanguage": "en" }, "jhipsterVersion": "5.7.2", "applicationType": "monolith", "baseName": "test", "packageName": "com.mycompany.myapp", "packageFolder": "com/mycompany/myapp", "serverPort": "8080",

Spring Boot 1.3.5 with Hikari Connection Pool not able to set program name in v$session

我们两清 提交于 2019-12-13 16:45:50
问题 I have a JHipster spring boot ver 1.3.5 application which connects to Oracle DB using Hikari Connection Pool. I am unable to set the program in v$session which should be possible by adding below in my application YAML hikari: v$session: program: AppName username: DB_USER I have tried adding these at spring.datasource level, datasource.hikari level and datasource level. I also looked at Hibernate 4.3.5 ignores v$session.program configuration property but that did not work as well. Update 1 - I

How pass params to custom error message in JHipster?

巧了我就是萌 提交于 2019-12-13 16:24:22
问题 I m still learning JHipster, So today I though about making somme validation exerices by my self, and to try to send meaningfull error messages to my frontend Here is what I tried In my controller I have the following : /** * POST /lessons : Create a new lesson of 45 min. * * if lesson is of type creno or circulation the car is mandatory * * @param lessonDTO the lessonDTO to create * @return the ResponseEntity with status 201 (Created) and with body the new lessonDTO, or with status 400 (Bad

How to work on single gateway based microservice in a team?

此生再无相见时 提交于 2019-12-13 15:25:07
问题 We are developing microservice based application using Jhipster. For that, there are different components should run at the same time i.e, service registry, UAA server, Gateway, and other different services. To run all these components on my PC it consumes all the resources (16 GB of Ram). However, other developers, they don't have sufficient resources on their PC, which is the reason we are facing the problems continues development in the team. So we are seeking some options for this problem