Search code examples
jhipster

jhipster omits configuration options when choosing to make application reactive with Spring WebFlux


I've noticed that when i create a new jhipster app using the jhipster-generator i'm not able to configure Websockets using Spring Websocket, Hibernate 2nd level Caching or Spring caching when i answer the question Do you want to make it reactive with Spring WebFlux? with Yes.

My question is: Why is this so? Why doesn't the jhipster-generator allow me to add Websockets and caching to my app while at the same time making it reactive using Spring WebFlux?


Solution

  • WebSocket with WebFlux is not implemented. See https://github.com/jhipster/generator-jhipster/issues/16942 for more information.

    Spring's @Cacheable is blocking, so it's not implemented for WebFlux. Learn more at Caching in Spring 5 WebFlux.