29 lines
844 B
Java
29 lines
844 B
Java
package com.red.circle.example;
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import org.springframework.boot.SpringApplication;
|
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
|
|
import org.springframework.scheduling.annotation.EnableAsync;
|
|
|
|
/**
|
|
* Spring Boot Starter.
|
|
*
|
|
* @author pengliang on 2023/5/7
|
|
*/
|
|
@Slf4j
|
|
@EnableAsync
|
|
@EnableDiscoveryClient
|
|
@SpringBootApplication
|
|
public class ExampleApplication {
|
|
|
|
public static void main(String[] args) {
|
|
log.info("Begin to start Spring Boot Application");
|
|
long startTime = System.currentTimeMillis();
|
|
SpringApplication.run(ExampleApplication.class, args);
|
|
long endTime = System.currentTimeMillis();
|
|
log.info("End starting Spring Boot Application, Time used: " + (endTime - startTime));
|
|
}
|
|
|
|
}
|