spring.datasource.url=jdbc:sqlserver://url-to-sql-server;databaseName=db-name;
'PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Trust the Microsoft SQL Server Certificate with "trustServerCertificate=true;".
spring.datasource.url=jdbc:sqlserver://url-to-sql-server;databaseName=db-name;trustServerCertificate=true;
Microsoft Driver Infos: https://learn.microsoft.com/en-us/sql/connect/jdbc/connecting-with-ssl-encryption?view=sql-server-ver16