jhipster / generator-jhipster

JHipster is a development platform to quickly generate, develop, & deploy modern web applications & microservice architectures.
https://www.jhipster.tech
Apache License 2.0
21.53k stars 4.02k forks source link

r2dbc mssql support #22916

Closed ieliibrahim closed 4 months ago

ieliibrahim commented 1 year ago

Hello First of all thank you for this amazing tool. My current issue is, after generating a new project, I noticed that Java code includes r2dbc pool support. I am having an issue with connecting to mssql database with the auto-generated url in yml file. The generated code in yml file is: url: r2dbc:mssql//localhost:1433/ which does not work, after some research I had to change it like this: url: r2dbc:pool:sqlserver://localhost:1433/ but that did not work, so please let me know what is the solution. Thank you

atomfrede commented 10 months ago

@ieliibrahim What are you trying to achive? Spring boot has direct support for r2dbc connection pooling via dedicated properties. https://docs.spring.io/spring-boot/docs/3.1.2/reference/htmlsingle/#application-properties.data.spring.r2dbc.pool.enabled

In case you want full control I suppose you can customize the ConnectionFactory via spring configuration.

atomfrede commented 10 months ago

@jhipster/developers Maybe we could enable spring r2dbc connection pool by default?

github-actions[bot] commented 4 months ago

This issue is stale because it has been open for too long without any activity. Due to the moving nature of jhipster generated application, bugs can become invalid. If this issue still applies please comment otherwise it will be closed in 7 days