jhipster

Webpack failure during JHipster Prod Package

左心房为你撑大大i 提交于 2019-12-10 17:49:05
问题 I generated a vanilla JHipster microservice gateway. With JHipster registry running I am able to start it using ./mvnw and it works. I can package it using ./mvnw -Pdev package and that works. However, if I try to package it using ./mvnw -Pprod package it fails apparently during the webpack build prod step. JHipster version 4.14.0 Yarn version 1.3.2 Node version v6.11.5 yo-rc.json { "generator-jhipster": { "promptValues": { "packageName": "org.jhipster.blog", "nativeLanguage": "en" },

Deploying jhipster app to a different context path

只愿长相守 提交于 2019-12-10 17:12:59
问题 I am trying to deploy a jhipster app using 'mvn' command. I believe this will run the default spring-boot:run. I think this deploys to tomcat. Once the server start's the application is availabe at http://localhost:8080. This works fine. But, i want to set a context path to the application, i don't want to deploy it to the root. For example: http://localhost:8080/test should take me to the application index page. I tired the following, but it did not work. mvn -Pprod package java -jar target

Duplicate jhipster project

点点圈 提交于 2019-12-10 15:27:43
问题 I have developped a Jhipster project. I need to create a new one which will be quite the same (but not the same). I would like to duplicate the first project. The second project would just have a different name and different main package name. Is there a way to do that properly? Thanks 回答1: Duplicate your project folder, in new folder edit .yo-rc.json file and change name and package. You may also want to change the rememberMeKey Delete src folder Run jhipster --with-entities to re-generate

Jhispter installation: The package karma does not satisfy its siblings' peerDependencies requirements

岁酱吖の 提交于 2019-12-10 14:36:12
问题 I'm trying to generete jhipster project by yo. But when I run it, a strange error occurs: The package karma does not satisfy its siblings' peerDependencies requirements! I uninstalled the nodejs completely and installed it again, but still same error. When I search for there are some solution advices like this or this. I have 64 bit win7, node -v v0.10.26 npm -v 1.4.3 error peerinvalid The package karma does not satisfy its siblings' peerDependencies requirements! error peerinvalid Peer karma

Jhipster not loading font awesome icons

别说谁变了你拦得住时间么 提交于 2019-12-10 13:57:13
问题 I have font awesome installed in my jhipster project When I import font awesome this way my icons dont appear- <link rel="stylesheet" href="bower_components/font-awesome/css/font-awesome.css" /> But if I import font awesome this way they show up fine <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css"> I had a look through the font awesome troubleshooting guide but nothing stands out Any help is much appreciated as I would like to host this

jhipster: How to create a one-to-many relationship with user entity?

♀尐吖头ヾ 提交于 2019-12-10 13:51:00
问题 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 re-declare every entity the relationship needs. But these are existing entities, is there a switch to direct jhipster-uml to use the existing domain definition without the need to re-declare it again? I just want to avoid using the Liquibase/Java manual setup. 回答1: In the documentation Tip: the

Authentication to JHipster UAA from non-jhipster application

99封情书 提交于 2019-12-10 11:34:22
问题 I used JHipster to create a micro-service architecture. I'm using JHipster Registry and JHipster UAA (OAuth2) as authentication solution. Now I'm looking for a way to authenticate and make some API calls from a mobile application that would be developed outside of JHipster. I tried to call UAA service from outside by calling /oauth/token ressource but it doesn't work. Any advices? 回答1: In a microservice architecture, you want to make requests to microservices through the gateway so it can

Angular 7 : Injected service is undefined

泪湿孤枕 提交于 2019-12-10 02:43:32
问题 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 footerComponent. So why the AccountService is injected perfectly in FooterComponent and it bugs in the LoginService. I do not know where the problem came from . import { Injectable } from '@angular/core'; import { AccountService } from 'app/core/auth/account.service'; import { AuthServerProvider } from

New JHipster application crashing when started

大城市里の小女人 提交于 2019-12-08 19:45:31
I generated my first JHipster app. I followed the official step-by-step guide and made no changes to the generated project. However, when I start the app (i.e., run main from the IDE or execute ./gradlew ) the following error is repeated a few times: java.net.ConnectException: Connection refused at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717) at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361) at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1141) 2018-01-15

Gradle build fails on Lombok annotated classes

99封情书 提交于 2019-12-08 15:29:59
问题 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 stalled for IntelliJ. I've turned on annotation processing in IntelliJ, I can build without errors from the IntelliJ IDE, but when I try to build from the command line I get build errors. It seems like Gradle is not processing the annotations and can't find the getter/setter and log declarations. The