0

我正在 SpringBoot 中开发我的应用程序,它使用 liquibase 来更新我的 ms-sql 数据库。

到目前为止这工作正常,但现在我正在尝试将所有内容更新到最新版本:

  • 我将 java 从 15 更改为 17。
  • 我还将 liquibase-maven-plugin 更新到 4.5.0。
  • liquibase 的 mssql-jdbc 依赖项是:mssql-jdbc:9.4.0.jre16
  • 新的 mssql-jdbc_auth-9.4.0.x64.dll 文件被移动到这个文件夹:c:\apps\Java\x64\jdk-17\bin\(这是我的 java 位置)。
  • 我的IntelliJ设置为使用java 17(JAVA_HOME也配置为17路径)
  • Microsoft SQL Server Express(64 位)版本:11.0.2100.60

所以我想我做了一切,但是,当我尝试运行我的 Maven 时,我收到以下错误:

[ERROR] Failed to execute goal org.liquibase:liquibase-maven-plugin:4.5.0:update (myDatabase) on project my-project: 
[ERROR] Error setting up or running Liquibase:
[ERROR] liquibase.exception.DatabaseException: liquibase.exception.DatabaseException: liquibase.exception.DatabaseException: Connection could not be created to jdbc:sqlserver://localhost:1433;databaseName=My_Database;integratedSecurity=true with driver com.microsoft.sqlserver.jdbc.SQLServerDriver.  The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: "The server selected protocol version TLS10 is not accepted by client preferences [TLS13, TLS12]"
4

0 回答 0