SystemPropertyRunner.java 428 Bytes
package cn.com.glsx.wechatbuild.config;

import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

//@Component
public class SystemPropertyRunner implements ApplicationRunner {
    @Override
    public void run(ApplicationArguments args) throws Exception {
        System.setProperty("https.protocols", "TLSv1.2,TLSv1.3");
    }
}