title: how to fix The server selected protocol version TLS10 is not accepted by client preferences [TLS12]
body: <p>I want to run a spring boot application with a sql server data base but when I run it, the following error appears :</p>
  <pre class="lang-sh prettyprint-override"><code>com.microsoft.sqlserver.jdbc.SQLServerException: The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: &quot;The server selected protocol version TLS10 is not accepted by client preferences [TLS12]&quot;. ClientConnectionId:73ea4fa4-e772-4fd7-90f5-d617aec091f2
      at com.microsoft.sqlserver.jdbc.SQLServerConnection.terminate(SQLServerConnection.java:2924) ~[mssql-jdbc-7.4.1.jre8.jar:na]
      at com.microsoft.sqlserver.jdbc.TDSChannel.enableSSL(IOBuffer.java:1881) ~[mssql-jdbc-7.4.1.jre8.jar:na]
  </code></pre>