Commit c32d36c1 authored by sml's avatar sml

启动类提交

parent 4ea1aaf1
Pipeline #327 canceled with stages
package com.jz;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.actuate.health.Health;
import org.springframework.boot.actuate.health.HealthIndicator;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
@SpringBootApplication
@EnableCaching
public class DmpApplication implements HealthIndicator {
private static Logger logger = LoggerFactory.getLogger(DmpApplication.class);
public static void main(String[] args) {
long start = System.currentTimeMillis();
SpringApplication springApplication = new SpringApplication(DmpApplication.class);
springApplication.run(args);
long cost = System.currentTimeMillis() - start;
logger.info(" started status: {}, cost: {}", "SUCCESS!", cost);
}
@Override
public Health health() {
return Health.up().withDetail("label center 系统", "启动成功!").build();
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment