jhipster

Generating JHipster app online serves empty page

冷暖自知 提交于 2019-12-11 02:48:50
问题 When I'm generating app from locally installed JHipster 4.7, I can start it on localhost:8080 by running ./mvnw with no problems. But when I generate the project online at https://start.jhipster.tech, running ./mvnw shows the blank page on localhost:8080 (no errors on the browser's console). To see the page, I have to run yarn start and use localhost:9000 (this is optional if I generate the project locally). Did anyone experience this? 回答1: Yes in dev mode the JHipster development

jhipster run embedded jar with prod profile - issue with liquibase

独自空忆成欢 提交于 2019-12-11 02:15:27
问题 I have packaged my app with : mvn -Pprod package Then I ran java -jar myapp-0.0.1-SNAPSHOT.war it works fine. But if I run : java -jar myapp-0.0.1-SNAPSHOT.war --spring.profiles.active=prod I am getting this error: [ERROR] org.springframework.boot.context.embedded.tomcat.ServletContextInitializerLifecycleListener - Error starting Tomcat context: org.springframework.beans.factory.BeanCreationException [WARN] org.springframework.boot.context.embedded

Setting up ng-jhipster on a generated JHipster app

末鹿安然 提交于 2019-12-11 02:08:47
问题 I would like to configure a cloned ng-jhipster project as a dependency for a generated JHipster app. I'm using the following versions (from jhipster info): git version 2.15.0 node: v6.11.5 npm: 5.4.2 yarn: 1.2.1 yeoman: 2.0.0 For my new generated JHipster application, I'm doing the following steps: yarn global add generator-jhipster (I get v4.10.2) mkdir ~/v4.10.2 cd ~/myNewGeneratedApp jhipster : here I choose all the defaults (specially Angular 4) ( yarn install is automatically executed

jhipster application-prod.yml stores sensitive info on github

倖福魔咒の 提交于 2019-12-11 01:58:10
问题 I want to keep my smtp login information private. And its a hassle to edit application-prod.yml every time I have to deploy to production. What is the correct method to avoid storing sensitive details in application-prod.yml on github ? 回答1: Many different ways depending on where and how you deploy to: Don't store application-prod.yml in git and don't package it in your jar Don't store secrets in application-prod.yml, use environment variables or command line options. See Spring Boot doc.

SQLServerException: The index 1 is out of range when executiong Spring Data findAll(Pageable)

余生长醉 提交于 2019-12-11 00:54:27
问题 When the Spring Data findAll(Pageable) method of an entity is called, the following query is executed by Hibernate: select TOP(?) customer0_.id as id1_0_, customer0_.name as name2_0_ from customer customer0_ After that the following query is executed: Hibernate: select customer0_.id as id1_0_, customer0_.name as name2_0_ from customer customer0_ order by customer0_.id asc offset 0 rows fetch next 20 rows only An execption is raised o.h.engine.jdbc.spi.SqlExceptionHelper : could not execute

jhipster oauth : How can i get the token via CURL

断了今生、忘了曾经 提交于 2019-12-10 23:49:18
问题 I am trying to use the jhipster to create a new project with the oauth2 authentication. The project example works fine, I can login with the angularjs interface. However when I try to retrieve an access_token using CURL in the command line, I get response as : "error":"Unauthorized","message":"Bad credentials" Can someone help me on how to use curl to get the access_token? 回答1: Here you go! curl http://127.0.0.1:8080/oauth/token --request POST --insecure --data "username=[xxx]&password=[yyy]

How to build, test and deploy using Jhipster, Docker, Gitlab and Heroku

和自甴很熟 提交于 2019-12-10 21:18:29
问题 I am very new to Jhipster and Docker and I would like some help understanding the basics of how to build and deploy my application on my Heroku instance. As I am working with a friend, we will probably need some sort of integration platform such as Gitlab that will also work as our code versioning and repository. Here is what we have done so far: Generated a monolithic application and tested it locally (works fine, thanks Jhipster for making it so easy). Pushed it on our gitlab repository.

Cannot run the war generated from Gradle BootRepackage in a JHipster-based web Application

我是研究僧i 提交于 2019-12-10 20:25:53
问题 I'm trying to run with java -jar the war file produce by ./gradlew -Pprod bootRepackage . The bootRepackage task successful concludes. When I look in the project_root/build/libs/ folder, the war and war.original files are created with the following permissions: -rw-rw-r-- 1 user user 110376521 Apr 24 09:42 app-0.1-SNAPSHOT.war -rw-rw-r-- 1 user user 107542786 Apr 24 09:40 app-0.1-SNAPSHOT.war.original In my build.gradle, I have the following: apply plugin: 'java' apply plugin: 'maven' apply

jhipster application files generated in wrong directory

余生颓废 提交于 2019-12-10 18:04:21
问题 When I try to create a jhipster application in ubuntu 13.10 with yo jhipster the generated output files are always dumped in the wrong directory. For example I run yo jhipster in the directory /mnt/mercury/jhipster-test/alpha then the files are dumped out to /mnt/mercury . In fact if I run yo jhipster in any subdirectory of /mnt/mercury they are always dumped out to /mnt/mercury . I'm using yo version 1.1.2 from the standard ubuntu repository Please advise how to generate files to be output

Integrate Activiti to JHipster Project

好久不见. 提交于 2019-12-10 17:56:02
问题 I am trying to integrate Activiti to the JHipster Project following the instruction here : getting started with activiti and spring boot. a few exception I am facing: conflict in 'userResource' class: Annotation-specified bean name 'userResource' for bean class [org.activiti.rest.service.api.identity.UserResource] conflicts with existing, non-compatible bean definition of same name and class [com.activiti.demo3.web.rest.UserResource] For now I have renamed the userResource class that comes