mirror of
https://gitee.com/pnoker/iot-dc3.git
synced 2026-11-01 10:41:52 +08:00
29 lines
822 B
Java
29 lines
822 B
Java
package com.pnoker;
|
|
|
|
import org.springframework.boot.SpringApplication;
|
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
|
|
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
|
|
import org.springframework.context.annotation.Bean;
|
|
import org.springframework.scheduling.annotation.EnableAsync;
|
|
import org.springframework.web.client.RestTemplate;
|
|
|
|
/**
|
|
* @author: Pnoker
|
|
* @email : pnokers@gmail.com
|
|
*/
|
|
@EnableAsync
|
|
@EnableDiscoveryClient
|
|
@SpringBootApplication
|
|
public class Dc3WebappApplication {
|
|
public static void main(String[] args) {
|
|
SpringApplication.run(Dc3WebappApplication.class, args);
|
|
}
|
|
|
|
@Bean
|
|
@LoadBalanced
|
|
RestTemplate restTemplate() {
|
|
return new RestTemplate();
|
|
}
|
|
}
|