package org.qinan.safetyeval.start;

import com.jjb.saas.base.starter.bootstart.JJBSpringbootApplication;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;

/**
 * Safety eval service bootstrap.
 */
@JJBSpringbootApplication(
        scanBasePackages = {"org.qinan.safetyeval", "com.jjb"},
        mapperPackages = {
                "org.qinan.safetyeval.infrastructure.mapper",
                "org.qinan.safetyeval.infrastructure.persistence.mapper"
        }
)
@Slf4j
public class SafetyEvalApplication {

    public static void main(String[] args) {
        long startTimeMillis = System.currentTimeMillis();
        SpringApplication.run(SafetyEvalApplication.class, args);
        log.info("SafetyEvalApplication started in {} min", (((float) (System.currentTimeMillis() - startTimeMillis)) / 60000L));
    }
}
