| | |
| | | package com.stylefeng.guns; |
| | | |
| | | import com.stylefeng.guns.modular.system.util.GDFalconUtil; |
| | | import org.apache.http.client.HttpClient; |
| | | import org.apache.http.config.SocketConfig; |
| | | import org.apache.http.impl.client.HttpClientBuilder; |
| | | import org.apache.http.impl.conn.PoolingHttpClientConnectionManager; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.boot.SpringApplication; |
| | | import org.springframework.boot.autoconfigure.SpringBootApplication; |
| | | import org.springframework.boot.builder.SpringApplicationBuilder; |
| | | import org.springframework.boot.web.servlet.support.SpringBootServletInitializer; |
| | | import org.springframework.cloud.client.loadbalancer.LoadBalanced; |
| | | import org.springframework.cloud.netflix.eureka.EnableEurekaClient; |
| | | import org.springframework.context.annotation.Bean; |
| | |
| | | private final static Logger logger = LoggerFactory.getLogger(GunsApplication.class); |
| | | |
| | | public static void main(String[] args) { |
| | | try{ |
| | | try { |
| | | SpringApplication.run(GunsApplication.class, args); |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |
| | | logger.info("GunsApplication is success!"); |
| | | } catch (Exception e) { |
| | | logger.error("GunsApplication启动异常", e); |
| | | } |
| | | logger.info("GunsApplication is success!"); |
| | | |
| | | // GDFalconUtil gdFalconUtil = new GDFalconUtil(); |
| | | // gdFalconUtil.init();//初始化猎鹰服务 |
| | | } |
| | | |
| | | |