See this topic:
Summary:
Check your JDBC driver in Microsoft's support matrix, and
Edit java.security if your SQL Server is too old to use TLS 1.3