Closed anothergoodguy closed 1 year ago
One more additional question team:
I see the generator of v8 doesn't ask for options of Servcie Discovery
for monolith generation and it recomends consul
for microservice generation. Please advise if there are any plans to retire jhipster-registery
in the future as it will have significant impact on the existing ecosystem to migrate to consul
.
This issue is not reproducible.
Works the endpoint works for ./gradlew
and ./gradlew -Pprod -Papi-docs
.
You should make sure api-docs profile is enabled.
In any case it's not related to jhipster, please post at stackoverflow.
Overview of the issue
Hi Team, Greetings! Pre-note: Please note this issue is reproducible only with
serviceDiscoveryType:eureka
in the configuration. I am not sure to file it underjhipster-registery
orgenerator-jhipster
. Please advise if this belongs tojhipster-registery
, I can refile there. Also not sure if this is a classpath issue or access issue.I am using the attached .yo-rc.json file with
"serviceDiscoveryType": "eureka"
. application compiles and runs perfectly without any error on both terminal withjava -jar build/libs/store-0.0.1-SNAPSHOT.jar
command and fromthe IDE intellij idea
.However, when running the generated application in
the IDE intellij idea
, log-in to the webapp, navigate toAdministration --> API
and you can only see a blank page with console errors on the browser (please see the attached screenshot). Interestingly I don't see any errors in the application's runtime console on the IDE.I have tried to add the below lines on different / alternative runs to
*basepackage.conf.SecurityConfiguration
, but with no success..requestMatchers("/management/jhiopenapigroups").permitAll()
.requestMatchers("/management/jhiopenapigroups").hasAuthority(AuthoritiesConstants.ADMIN)
Motivation for or Use Case
Running the application in the IDE will allow to debug the application flows on a rest API, swagger in JHispter has been a great value add to do the same.
Reproduce the error
docker-compose -f src/main/docker/services.yml up
http://localhost:8081/
admin/admin
Administration --> API
o the web page.Note: this doesn't happen if you build and run the application on a terminal.
Related issues
N/A
Suggest a Fix
I have tried to add the below lines on different / alternative runs to
*basepackage.conf.SecurityConfiguration
, but with no success:.requestMatchers("/management/jhiopenapigroups").permitAll()
.requestMatchers("/management/jhiopenapigroups").hasAuthority(AuthoritiesConstants.ADMIN)
Also tried adding the following line to
*basepackage.web.filter.SpaWebFilter
, with no success:!path.contains("/management/jhiopenapigroups")
JHipster Version(s)
8.0.0-beta.2
JHipster configuration
██╗ ██║ ██╔═══██║ ██║ ██╔════╝ ╚═══██╗ ██║ ██╔═══╝ ██╔══██║ ╚██████╔╝ ██║ ██║ ████████╗ ██║ ██████╔╝ ██║ ████████╗ ██║ ╚██╗ ╚═════╝ ╚═╝ ╚═╝ ╚═══════╝ ╚═╝ ╚═════╝ ╚═╝ ╚═══════╝ ╚═╝ ╚═╝ https://www.jhipster.tech Welcome to JHipster v8.0.0-beta.2
JHipster configuration, a
.yo-rc.json
file generated in the root folder.yo-rc.json file
Environment and Tools
openjdk version "17.0.7" 2023-04-18 OpenJDK Runtime Environment Temurin-17.0.7+7 (build 17.0.7+7) OpenJDK 64-Bit Server VM Temurin-17.0.7+7 (build 17.0.7+7, mixed mode, sharing)
git version 2.25.1
node: v18.16.1 npm: 9.5.1
'docker' command could not be found
JDL for the Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryJDL entity definitions
Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryPlease note this issue occurs only with the combination of
serviceDiscoveryType:eureka
in the configuration and when we run the application from the IDE only.Application generated with
serviceDiscoveryType:false
doesn't produce this issue.Browsers and Operating System
MACOS - Ventura - 13.4.1
JDK - openjdk version "17.0.8.1" 2023-08-24
Google Chrome - Version 115.0.5790.170 (Official Build) (x86_64)
[X] Checking this box is mandatory (this is just to show you read everything)