|
@@ -58,7 +58,8 @@ echo "========================================"
|
|
|
# spring.config.location 末尾的 / 非常重要:表示作为目录搜索,
|
|
# spring.config.location 末尾的 / 非常重要:表示作为目录搜索,
|
|
|
# Spring Boot 会同时加载 application.yml 和 application-{profile}.yml。
|
|
# Spring Boot 会同时加载 application.yml 和 application-{profile}.yml。
|
|
|
# 外部文件覆盖 JAR 内置文件,相同属性以外部文件为准。
|
|
# 外部文件覆盖 JAR 内置文件,相同属性以外部文件为准。
|
|
|
-exec java -jar "$JAR_FILE" \
|
|
|
|
|
|
|
+# TLS: 强制出站 HTTPS 使用 TLSv1.2 —— Tencent 微信/支付边缘会终止 TLSv1.3 握手(Remote host terminated the handshake)
|
|
|
|
|
+exec java -Dhttps.protocols=TLSv1.2 -Djdk.tls.client.protocols=TLSv1.2 -jar "$JAR_FILE" \
|
|
|
--spring.profiles.active="$PROFILE" \
|
|
--spring.profiles.active="$PROFILE" \
|
|
|
--spring.config.location="$CONFIG_DIR/" \
|
|
--spring.config.location="$CONFIG_DIR/" \
|
|
|
>> "$LOG_FILE" 2>&1
|
|
>> "$LOG_FILE" 2>&1
|