在SQL server参数增加:
encrypt=false;trustServerCertificate=true;
注意有的文章只建议增加trustServerCertificate。但是有些连接器(flink jdbc)会默认添加encrypt=true参数。造成连接失败。
If TrustServerCertificate is set to true and encryption is turned on, the encryption level specified on the server will be used even if Encrypt is set to false. The connection will fail otherwise.