jhipster

I am trying to set maxFileSize but it is not honored

假装没事ソ 提交于 2019-11-28 06:46:00
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 am still getting an error when I try to try to upload a file > 1MB: Caused by: org.apache.tomcat.util.http.fileupload.FileUploadBase$SizeLimitExceededException: the request was rejected because its size (20663006) exceeds the configured maximum (10485760) What am I missing? It seems this should be pretty straight forward. Update 1 I un-nested it from spring config as suggested by Andy, but still got the error. Updated yml

How to modify existing entity generated with jhipster?

不羁的心 提交于 2019-11-28 03:48:43
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 manually, here is the development workflow: Modify your JPA entity (add a field, a relationship, etc.) Create a new "change log" in your src/main/resources/config/liquibase/changelog directory. The files in that directory are prefixed by their creation date (in yyyyMMddHHmmss format), and then have a title describing what they do. For example, 20141006152300_added_price_to_product.xml is a good name. Add

Spring Boot with Embedded Undertow behind AWS ELB - HTTP to HTTPS redirect

匆匆过客 提交于 2019-11-28 02:13:21
I'm running a Spring boot (Jhipster/Undertow) application on port 8080 on an AWS EC2 instance. I have an AWS ELB configured to redirect 80 -> 8080 443 (SSL termination happens here) -> 8080 The application uses Spring Security and if you user arrives to http://example.com I want it to redirect to https://example.com , to use SSL. I have found various examples of configuring this in Tomcat but none using Undertow. I have tried this, with a second port 8089, and it does redirect as required, but this causes port 8080 to also redirects which I don't want. 80 -> 8089 443 (SSL termination happens

Running JHipster Gradle task from Intellij IDEA

扶醉桌前 提交于 2019-11-28 01:53:47
问题 This error happens when I run with Gradle through from Intellij IDEA.. but from console everything works fine... someone knows why? Executing external task 'run --stacktrace'... :compileJava UP-TO-DATE :compileScala UP-TO-DATE :bower FAILED org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':bower'. Caused by: java.io.IOException: Cannot run program "bower" (in directory "/Users/eduardo/Development/projects/jhipster"): error=2, No such file or directory 回答1: I contacted

jhipster oauth : How can i get the access_token via CURL

最后都变了- 提交于 2019-11-27 22:25:08
i'm trying to use the jhipster tool in order to create a new project with the oauth2 authentication. The project example work fine, i can login with the angularjs interface, but can't understand how can i create a new user and then get the access token via Curl command line for this new user. Thanks for your help Step #1: Register the user. Register a user at http://localhost:8080/#/register and make sure you can log in via the web interface. Step #2: Obtain an OAuth2 token. Information required for obtaining an OAuth2 token: OAuth2 client id (see application.yml) OAuth2 secret (see

Using ROLES in jhipster?

空扰寡人 提交于 2019-11-27 18:20:45
问题 I tried to add and change roles in jhipster. First I just tried to change one use case's role to admin from user. Then I tested it and user can add employee even if the roles is ROLE_ADMIN so it didn't change anything. I added new role as well, called MANAGER. I edited AuthoritiesConstants.java and added new role to JHI_AUTHORITY-table. Should I do something else or is this enough to get this working? state('employee.new', { parent: 'employee', url: '/new', data: { roles: ['ROLE_ADMIN'], },

How to add self signed SSL certificate to jHipster sample app?

*爱你&永不变心* 提交于 2019-11-27 17:13:27
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? Driss Amri These instructions are applicable for all Spring Boot applications, on which JHipster is based. I have tested this on a newly generated JHipster 2.7 project. You need to complete these steps when starting from scratch: Generate a self-signed certificate Add the SSL properties to your application.properties or application.yml as mentioned in the Spring Boot documentation (Optional) Redirect HTTP to HTTPS Generating a self-signed

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

寵の児 提交于 2019-11-27 05:55:22
问题 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 use .antMatchers("/app/rest/question/useroperation/list/**").permitAll() in ouath2 configuration like below, then I can get user info for authenticated user, but 401 error for not authenticated users. If I .antMatchers("/app/rest/question/useroperation/list/**").permitAll()

I am trying to set maxFileSize but it is not honored

家住魔仙堡 提交于 2019-11-27 05:41:59
问题 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 am still getting an error when I try to try to upload a file > 1MB: Caused by: org.apache.tomcat.util.http.fileupload.FileUploadBase$SizeLimitExceededException: the request was rejected because its size (20663006) exceeds the configured maximum (10485760) What am I missing? It seems this should be pretty straight forward.

How to modify existing entity generated with jhipster?

主宰稳场 提交于 2019-11-27 05:15:16
问题 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 manually, here is the development workflow: Modify your JPA entity (add a field, a relationship, etc.) Create a new "change log" in your src/main/resources/config/liquibase/changelog directory. The files in that directory are prefixed by their creation date (in yyyyMMddHHmmss format), and then have a