jhipster

How to set the REST api address in Angular according to build?

独自空忆成欢 提交于 2021-01-29 11:32:42
问题 I have an Angular front-end project generated by JHipster(5.8.2) and would like to adjust the settings so that when the build was 'prod' the REST API address would be a value and when the build was 'dev' the address would be another, however I could not make this change in the webpack.dev.js, webpack.prod.js, and webpack.common.js files. In the webpack.common.js file I set a value instead of empty string in SERVER_API_URL, however, this value was applied to all builds. I also tried using a

Integrate Redis to JHipster CacheConfiguration error

本小妞迷上赌 提交于 2021-01-29 11:10:27
问题 I'm trying to integrate redis cache to JHipster generator following this pull request on Github: https://github.com/jhipster/generator-jhipster/pull/10057/commits/cd2f2865d35dfd77624dd3a38ed32822e895539d# I receive this error while building my project: [ERROR] symbol: method getRedis() [ERROR] location: class io.github.jhipster.config.JHipsterProperties.Cache [ERROR] ../config/CacheConfiguration.java:[61,139] cannot find symbol The method getRedis() is undefined for the type

JHipster - How to add route to external microservices in application.yml

一笑奈何 提交于 2021-01-29 10:42:30
问题 I'm using Jhipster 5.5.0 to build a zuul gateway capable to route rest request to different microservices. Some of this microservices are developed in different languages, deployed and running on different server. Every microservices is protected via OIDC using the same keycloak server, under different realms. Now I need to configure zuul route on application.yml properties file of my gateway app, to access this service by external rest client (customers) and using zuul for filtering request

Persist some JHipster settings globally to save time when creating projects

╄→尐↘猪︶ㄣ 提交于 2021-01-29 08:38:45
问题 I'm using JHipster a lot to try out new things Some settings I usually don't change. For example: on the internationalization step I usually choose "Englisch" as main language and "German" as translation language. Also, I want to have some plugins from the marketplace always inside the project. Can I place a file with some options somewhere so JHipster applies those to all new projects I create? 回答1: You can use a jdl-file to persist application settings, too, see: https://github.com/jhipster

Elasticsearch error when re-running jhipster project: Error creating bean with name 'userSearchRepository'

十年热恋 提交于 2021-01-29 08:38:14
问题 After generating jhipster with elasticsearch I imported jdl file below. { "generator-jhipster": { "promptValues": { "packageName": "com.nokat.gazna", "nativeLanguage": "en" }, "jhipsterVersion": "6.4.1", "applicationType": "monolith", "baseName": "gazna", "packageName": "com.nokat.gazna", "packageFolder": "com/nokat/gazna", "serverPort": "8080", "authenticationType": "jwt", "cacheProvider": "ehcache", "enableHibernateCache": true, "websocket": false, "databaseType": "sql", "devDatabaseType":

Geting Current logged user details for jhi_persistenet_audit_event table

删除回忆录丶 提交于 2021-01-29 06:12:47
问题 I am working with jhipster. I need to create a new table for auditing my database changes and link it with the default jhi_persistenet_audit_event table generated by the Jhipster. How I can get the current logged user record from the jhi_persistenet_audit_event table to link that id to my new table? 回答1: Solution 1: Principal principal @RequestMapping(value = {"/", ""}) public String start(Principal principal, Model model) { String currentUser = principal.getName(); return currentUser; }

Firebase on Spring Boot Default App

ε祈祈猫儿з 提交于 2021-01-29 05:22:32
问题 I am creating a JHipster application (Springboot + Angular) and I need to integrate Firebase. I've followed the instructions on firebase documentation and it works perfectly when I start the sever offline. But when I deploy the server to AWS using jhipster aws in console, when I try to call a function that uses the firebase SDK it says Trying to login to firebase failed. Reason: FirebaseApp name [DEFAULT] already exists! This behaviour happens only when I deploy the application because if I

Jhipster login / authentication in mobile app

荒凉一梦 提交于 2021-01-29 04:01:50
问题 How to get a session cookie and the CSRF token from jhipster then use them in your calls to the API from mobile app. I am using HTTP session authentication. JHipster configuration, a .yo-rc.json file generated in the root folder { "generator-jhipster": { "jhipsterVersion": "3.0.0", "baseName": "vconnect", "packageName": "com.zenfact.vconnect", "packageFolder": "com/zenfact/vconnect", "serverPort": "8080", "authenticationType": "session", "hibernateCache": "ehcache", "clusteredHttpSession":

Spring Boot app not working on Kubernetes cluster

て烟熏妆下的殇ゞ 提交于 2021-01-28 21:10:19
问题 I'm developing an application with microservice architecture using jhipster. I can run my services in dev mode even though i get this warning but when I run it on kubernetes cluster after i get this warning pod restarts itself over and over on loop. I have 4 microservies and a gateway. All the same. Thank you in advance. This is the warning: 2020-05-06 06:06:51.415 WARN 1 --- [scoveryClient-1] c.netflix.discovery.TimedSupervisorTask : task supervisor timed out java.util.concurrent

Request cannot be proceed error in Jhipster registry version 4.0.0

大城市里の小女人 提交于 2021-01-28 10:41:33
问题 I downloaded jhipster registry version 4.0.0, imported and run the registry successfully, when I open localhost:8761 I am getting request cannot be proceed error, there is no error information also. When I used command mvnw I am getting an exception in thread "main" javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target.