特性:
server.ssl.enabled-protocols=TLSv1.2,TLSv1.3
輸出警告:
o.apache.tomcat.util.net.SSLHostConfig : The protocol [TLSv1.2] was added to the list of protocols on the SSLHostConfig named [default]. Check if a /- prefix is missing.
[TLSv1.2] 根據順序替換為 [TLSv1.3]。
任何線索如何解決這個問題?
uj5u.com熱心網友回復:
這是“只是”警告。Tomcat 以前使用 a,作為分隔符,現在改為使用 a 和 a-來表示添加或洗掉協議。不管警告如何,它仍然可以正常作業。
請參閱 Tomcat 源代碼中的以下注釋。
// List of protocol names, separated by ",", " " or "-".
// Semantics is adding (" ") or removing ("-") from left
// to right, starting with an empty protocol set.
// Tokens are individual protocol names or "all" for a
// default set of supported protocols.
// Separator "," is only kept for compatibility and has the
// same semantics as " ", except that it warns about a potentially
// missing " " or "-".
Spring Boot 將使用單個字串呼叫setProtocolsof SSLHostConfig,它將使用 a 連接陣列Stringin 。因此Tomcat會發出警告。ServerProperties,
您可以在配置中將替換為,a 以防止出現警告。
轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/408185.html
標籤:
