I am using springboot 2.7.4
and sql server driver 11.2.1.jre8
on Java 8
to connect to SQL Server 2012
database which uses TLSv1
and the project runs on Tomcat 9.
JDBC driver dependency:
<dependency>
<groupId>com.microsoft.sqlserver</groupId>
<artifactId>mssql-jdbc</artifactId>
<version>11.2.1.jre8</version>
</dependency>
My connection URL is as follows:
spring.datasource.url=jdbc:sqlserver://myhostname;databaseName=mydb;encrypt=false;