jhipster

More than one gateway in jhipster

浪子不回头ぞ 提交于 2019-12-08 03:33:00
问题 Is it bad practice and what are possible consequences of having more than one gateway applications in the jhipster stack. I am working on an application that has user part and admin part which are very different. The idea is to have 2 gateways, one for user web app and one for admin web app. Both of them would have their own microservice as backend. Plus there is third shared microservice that contains common functionality. So it looks like this: user web app (gateway) admin web app (gateway)

Adding new route to Jhipster using Angular 4

为君一笑 提交于 2019-12-08 03:08:08
问题 I'm trying to add a new menu item to the default generated JHipster app. I'm using Angular 4 by the way. The problem I'm facing is that I'm always getting the error below. Error: Uncaught (in promise): Error: Cannot match any routes. URL Segment: 'user-profile' The following are the codes I added. Firstly, I added a folder named user-profile under src/main/webapp/app. In it, I added index.ts, user-profile.component.html, user-profile.component.ts and user-profile.route.ts The contents of

How to set base url for Angular application

元气小坏坏 提交于 2019-12-08 02:57:25
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 my question, as it is misinterpreted in all answers below. I want to land my JHipster generated Angular application on something other than / , eg /crud/ . The purpose is to serve some non-Angular content on / . How can I move the entire application from / to /crud/ ? And still have / served by a static index.html file? You can modify it using <base href="/"> in src/index.html file. <!doctype html>

Yeoman Generator: CLI+File Instead of Prompt

北战南征 提交于 2019-12-07 18:15:53
问题 I've been using a few Yeoman Generators that prompt me for user input. I'd prefer to put my inputs in a JSON file though. I can see that yo-rc.json gets generated afterwards, but I'd like to use that (or a file like it) as an input to Yeoman. Example using JHipster: Current Behavior $ yo jhipster Welcome to the JHipster Generator v2.16.1 ? (1/15) What is the base name of your application? (jhipster) helpme ? (2/15) What is your default Java package name? com.mycompany.helpme ... # Yeoman

Images not found when doing a production build with JHipster

自古美人都是妖i 提交于 2019-12-07 13:04:52
问题 When I am trying to deploy my application in my prod the WAR do not have the images directory so i get my application deploy without any images. What could be the problem? 回答1: It looks like the cause of the problem is "gulp-imagemin", as a workaround remove this line: .pipe(imagemin({optimizationLevel: 5, progressive: true, interlaced: true})) from: gulpfile.js 回答2: Your images must be in src/main/webapp/content/images to get minified and copied by gulp to target/www/content/images and then

How to perform actions on successful login via OAuth2 in jhipster

为君一笑 提交于 2019-12-07 12:08:43
问题 I want to ask how to perform an action after a successful login via OAuth2 and how to veto a login based on some preconditions. I tried to search on Google and found some links but I'm not sure how to do that on this framework. There might be some filter etc I can add but wanted to know the right place to do this. Note: The AuditEvent will not work for me since successful audit is called with every API call. Ref: http://blog.jdriven.com/2015/01/stateless-spring-security-part-3-jwt-social

Break point in debug mode is not working with jhipster

不问归期 提交于 2019-12-07 06:58:23
问题 I am working on jhipster Release 0.7.0 and used spring STS to run project with tomcat7 . But i an not able to access Break point on debug mode . Debugger skip that point and open Debug perspective. Please help to Break point in debug mode is not working with jHipster 回答1: Right click on your "Application" class, you should be able to run/debug it. Select "Debug", of course :-) To set a breakpoint, just click on the left of line you are interested in, it should display a red dot. When this

Setting up bonsai-elasticsearch in Jhipster - Heroku

左心房为你撑大大i 提交于 2019-12-07 05:19:35
问题 After deploying to heroku my Jhipster app, I want to use cloud elasticsearch (Bonsai) with JHipster. Bonsai provides following env variable: $BONSAI_URL How is this properly added in application-prod.yml? I`ve been reading the docs and trying too set it as cluster-nodes value and as host. But i'm a bit lost. Any tips are more than welcome. application-prod.yml spring: devtools: restart: enabled: false livereload: enabled: false datasource: url: jdbc:mysql://localhost:3306/App?useUnicode=true

Jhipster Ionic Error while creating app : getJhipsterAppConfig is not a function

三世轮回 提交于 2019-12-06 16:24:23
问题 I'm trying to start a new Jhipster Ionic but i'm stuck with this error : $yo jhipster-ionic events.js:183 throw er; // Unhandled 'error' event ^ TypeError: this.getJhipsterAppConfig is not a function at module.exports.readConfig (C:\Users\User\AppData\Roaming\npm\node_modules\generator-jhipster-ionic\generators\app\index.js:63:47) at Object.<anonymous> (C:\Users\User\AppData\Roaming\npm\node_modules\generator-jhipster-ionic\node_modules\generator-jhipster\node_modules\yeoman-generator\lib

JHipster: How to make secure calls to microservices from UAA server with unauthenticated user

℡╲_俬逩灬. 提交于 2019-12-06 13:51:42
问题 Dear StackOverflow Community, I found that someone else already asked something similar to my problem here but didn't receive any good answers. I want to create an entity on microservice A as soon as a User gets activated on the UAA server (when activateAccount() is called in the AccountResource). At this point the user is not authenticated and therefor I'm not able to use an AuthenticatedFeignClient, as I would on other microservices. When I disable authentication on microservice A and use a