mirror of
https://gitee.com/pnoker/iot-dc3.git
synced 2026-11-02 19:21:51 +08:00
chore: rename application main classes to Dc3-prefixed convention
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user