jhipster

ERROR in NaN but they point to different modules. … Webpack cannot distinguish on context and would fail to load the proper one

谁说我不能喝 提交于 2021-02-08 17:31:58
问题 ERROR in NaNbut they point to different modules "(/Users/USER/eclipse-workspace/nms/bin/main/webapp/app/admin/admin.module.ts and "/Users/USER/eclipse-workspace/nms/src/main/webapp/app/admin/admin.module.ts"). Webpack cannot distinguish on context and would fail to load the proper one. I have done ./gradlew -Pprod And with ./gradlew -Pprod --debug --info --scan --stacktrace Gives this error: https://scans.gradle.com/s/czc6mol6ipsg6 Works well with ./gradlew and ./gradlew -Pdev bootWar node

ERROR in NaN but they point to different modules. … Webpack cannot distinguish on context and would fail to load the proper one

五迷三道 提交于 2021-02-08 17:31:05
问题 ERROR in NaNbut they point to different modules "(/Users/USER/eclipse-workspace/nms/bin/main/webapp/app/admin/admin.module.ts and "/Users/USER/eclipse-workspace/nms/src/main/webapp/app/admin/admin.module.ts"). Webpack cannot distinguish on context and would fail to load the proper one. I have done ./gradlew -Pprod And with ./gradlew -Pprod --debug --info --scan --stacktrace Gives this error: https://scans.gradle.com/s/czc6mol6ipsg6 Works well with ./gradlew and ./gradlew -Pdev bootWar node

ERROR in NaN but they point to different modules. … Webpack cannot distinguish on context and would fail to load the proper one

瘦欲@ 提交于 2021-02-08 17:24:43
问题 ERROR in NaNbut they point to different modules "(/Users/USER/eclipse-workspace/nms/bin/main/webapp/app/admin/admin.module.ts and "/Users/USER/eclipse-workspace/nms/src/main/webapp/app/admin/admin.module.ts"). Webpack cannot distinguish on context and would fail to load the proper one. I have done ./gradlew -Pprod And with ./gradlew -Pprod --debug --info --scan --stacktrace Gives this error: https://scans.gradle.com/s/czc6mol6ipsg6 Works well with ./gradlew and ./gradlew -Pdev bootWar node

How to write a Spring Data JPA Specification with multiple joins?

不羁的心 提交于 2021-02-08 10:17:17
问题 The project I'm working on was generated with JHipster with support for entity filtering, which uses Spring Data JPA Specifications under the hood. The model is as follows (in JDL): entity Student { name String } entity Course { name String } entity Enrollment { } entity Attendance { date LocalDate } relationship OneToMany { Student to Enrollment(student required), Course to Enrollment(course required), Enrollment to Attendance(enrollment required) } filter all service all with serviceClass

Restrict URL access control by id in jhipster

蓝咒 提交于 2021-02-08 04:44:25
问题 I have a problem that each user can retrieve other users data from URL. For instance, I have a rest api like this: @GetMapping("/getFindByPersonId/{perId}") @Timed public List<ComboVahedAmoozeshi> getFindBySkhsIdCombo(@PathVariable Long perId){ return comboVahedAmoozeshiRepository.getFindBySkhsIdCombo(perId); } After authorization, each user can change id and get other users data like the image below: Is there any suggestion to restrict each user to don`t have access to call the method? Or

How to extend OAuth2 principal

 ̄綄美尐妖づ 提交于 2021-02-08 04:27:47
问题 We are developing an application that uses OAuth 2 for two use cases: Access to backend microservies (using client_credentials ) Authenticating the application's users (using authorization_code , so redirecting the users to Keycloak for login, roughly configured like shown in the tutorial). While authenticating our users, we receive part of the information from the auth server (such as login) and the other part can be found in a local user table. What we like to do is to create a Principal

Deploying a JHipster/MongoDB application to Heroku

Deadly 提交于 2021-02-07 07:19:17
问题 JHipster offers sub-generators for deploying applications to cloud providers (such as Heroku and Openshift), but not for applications using MongoDB due to the fact that Mongeez requires admin privileges which of course is not possible within a PaaS environment. However, it should be possible to run JHipster + MongoDB on cloud providers as long as Mongeez is deactivated. I did the following (using Heroku): First, I manually exported the MongoDB database that was created by JHipster on my local

How to limit client access defined in OAuth2 settings?

痴心易碎 提交于 2021-02-05 09:31:27
问题 In a REST API developed with Sping Boot and OAuth2 is it possible to limit user access according to client defined in the Authorization Server settings? For example, in the Authorization Server I have the following client configuration: clients.inMemory() .withClient(uaaProperties.getWebClientConfiguration().getClientId()) .secret(passwordEncoder.encode(uaaProperties.getWebClientConfiguration().getSecret())) .scopes("openid") .authorities("ROLE_TESTE") .autoApprove(true) .authorizedGrantTypes

Dynamic hostname in @AuthorizedFeignClient

时间秒杀一切 提交于 2021-01-29 19:33:04
问题 In a microservice system, I have an interface with the annotation @AuthorizedFeignClient(name="send-email", url="http://localhost:8080/utils/api/email") , in the development environment it works correctly, however, in the Docker environment, I need the url parameter to have the Docker container name in place of localhost to work in the Docker environment. I tried adding in the application-prod.yml the configuration: containers-host: gateway: jhipster-gateway And in the annotation I put it

Write Spring Specification with multiple inner join & other conditions

我怕爱的太早我们不能终老 提交于 2021-01-29 12:14:06
问题 I am working on a project Spring and Java, generated using JHipster. I encounter a problem with the following items of Spring: Specification, Criteria, and filtering a list of items. I have a functioning SQL query, than I want to "translate" as a Spring Specification. But, I don't find how to do it, as the query works on 3 tables, and has 2 conditions. Basically, the work concerns 3 tables: contract, transfer & entry. A contract can be inside one or several transfers, and a transfer contains