ciao!
ho un problema con la connessione ad un db SQL Server che non riesco a risolvere.
questo il file application.properties:
codice:
spring.application.name=api
spring.jpa.properties.hibernate.format_sql=true
spring.datasource.url= jdbc:sqlserver://INDIRIZZO_IP:1433;encrypt=true;trustServerCertificate=true;databaseName=NOME_DB
spring.datasource.username= USER
spring.datasource.password= PWD
spring.jpa.properties.hibernate.dialect= org.hibernate.dialect.SQLServerDialect
spring.jpa.hibernate.ddl-auto= update
in sostanza il progetto non si avvia e mi dice questo:
codice:
org.hibernate.exception.JDBCConnectionException: unable to obtain isolated JDBC connection [La proprietà "encrypt" è impostata su "true" e la proprietà "trustServerCertificate" è impostata su "true", ma il driver non è riuscito a stabilire una connessione sicura a SQL Server tramite la crittografia Secure Sockets Layer (SSL): errore: The server selected protocol version TLS10 is not accepted by client preferences [TLS13, TLS12]. ClientConnectionId:1cf9fa6d-4c8b-4ed6-a8ba-36c12b2b7a12]
..................................
qualche idea??