-
-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
code of redis cannot be generated for reactive apps #27672
Comments
JHipster has completed the sample check This check uses |
I tried generating apps from your JDL. I was able to run |
I tried generating a monolith with the CLI and choosing Redis for the cache provider. It creates Docker Compose YAML files just fine. Here's the {
"generator-jhipster": {
"applicationType": "monolith",
"authenticationType": "jwt",
"baseName": "redis",
"buildTool": "maven",
"cacheProvider": "redis",
"clientFramework": "angular",
"clientTestFrameworks": [],
"clientTheme": "none",
"creationTimestamp": 1730211299066,
"databaseType": "sql",
"devDatabaseType": "postgresql",
"devServerPort": 4200,
"enableHibernateCache": true,
"enableSwaggerCodegen": false,
"enableTranslation": true,
"entities": [],
"feignClient": null,
"jhipsterVersion": "8.7.2",
"languages": ["en"],
"messageBroker": false,
"microfrontend": null,
"microfrontends": [],
"nativeLanguage": "en",
"packageName": "com.mycompany.myapp",
"prodDatabaseType": "postgresql",
"reactive": false,
"searchEngine": false,
"serverPort": null,
"serverSideOptions": [],
"serviceDiscoveryType": false,
"syncUserWithIdp": null,
"testFrameworks": [],
"websocket": false,
"withAdminUi": true
}
}
If I change the JDL to have
This is because the Spring Cache generator disables caching for reactive apps. We didn't implement caching for reactive apps because it wasn't supported by Spring WebFlux when we implemented it. See #10107. If you change your app to have |
Setting |
Overview of the issue
I try to generate a project based on a official sample jdl file with a slight modify, everything works well but redis. the code of redis cannot be generated properly.
Motivation for or Use Case
Reproduce the error
microservice-ecommerce-reactive.txt
jhipster jdl .\microservice-ecommerce-reactive.jdl
Related issues
Suggest a Fix
JHipster Version(s)
v8.7.1
JHipster configuration
.yo-rc.json file for invoice
.yo-rc.json file for notification
.yo-rc.json file for store
.yo-rc.json file for product
Browsers and Operating System
Edition Windows 11 Pro
Version 23H2
Installed on 8/19/2024
OS build 22631.4317
Experience Windows Feature Experience Pack 1000.22700.1041.0
The text was updated successfully, but these errors were encountered: