๋ฐ์ํ
JDK 11 ๋ฒ์ ์ด์ ์ฌ์ฉํ๋ ํ๋ก์ ํธ์์ MSSQL ์ฐ๊ฒฐ ์๋ ์ ์๋์ ๋ฉ์ธ์ง ์ถ๋ ฅ.
๋๋ผ์ด๋ฒ๊ฐ SSL(Secure Sockets Layer) ์ํธํ๋ฅผ ์ฌ์ฉํ์ฌ SQL Sever๋ก ๋ณด์ ์ฐ๊ฒฐ์ ์ค์ ํ ์ ์์ต๋๋ค. ์ค๋ฅ: "PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target"
์์ธ : jdk11 ์ ์ง์ํ๋ mssql ๋๋ผ์ด๋ฒ ๋ฒ์ (10.2์ด์)๋ถํฐ ๊ธฐ๋ณธ์ ์ผ๋ก ์ํธํ๋ฅผ ์ฌ์ฉํ๋๋ก ๋ณ๊ฒฝ๋จ.
(https://docs.microsoft.com/en-us/sql/connect/jdbc/release-notes-for-the-jdbc-driver?view=sql-server-ver16)
Release notes - JDBC Driver for SQL Server
This article lists the releases of the Microsoft JDBC Driver for SQL Server. For each release version, the changes are named and described.
docs.microsoft.com
๋ฐ๋ผ์, SQL์๋ฒ์ ํต์ ์ ์ํธํ๋ฅผ false๋ก ์ฃผ๋ ์ต์ ์ ํตํด ์ฐ๊ฒฐ ์๋๋ฅผ ํด์ผ ํ๋ค.
datasource:
hikari:
jdbc-url: jdbc:sqlserver://{url:port};DatabaseName={dbName};encrypt=false
driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
๋ฐฉ๋ฒ์ ์์ ๊ฐ์ด ๋ค์ ์ธ์๋ก "encrypt=false" ๋ฅผ ์ค๋ค.
728x90
๋ฐ์ํ
๋๊ธ