zhibing.pu
2024-09-02 e450b6ffb2b6cea8cca12b21d0003fb66fde7b36
ManagementIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/GunsApplication.java
@@ -14,7 +14,9 @@
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.web.client.RestTemplate;
import javax.annotation.PostConstruct;
import java.nio.charset.StandardCharsets;
import java.util.TimeZone;
/**
 * SpringBoot方式启动类
@@ -33,6 +35,14 @@
        logger.info("GunsApplication is success!"); 
    }
//    @PostConstruct
//    void started() {
//        TimeZone.setDefault(TimeZone.getTimeZone("GMT+0"));
//    }
    @Bean //通过ip地址调用
    public RestTemplate restTemplate() {
        PoolingHttpClientConnectionManager connectionManager = new PoolingHttpClientConnectionManager();