package com.hx.other.service;
|
|
import com.hx.other.service.config.UniqueNameGenerator;
|
import com.thebeastshop.forest.springboot.annotation.ForestScan;
|
import org.mybatis.spring.boot.autoconfigure.MybatisAutoConfiguration;
|
import org.springframework.boot.CommandLineRunner;
|
import org.springframework.boot.SpringApplication;
|
import org.springframework.boot.builder.SpringApplicationBuilder;
|
import org.springframework.boot.web.servlet.ServletComponentScan;
|
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
import org.springframework.context.annotation.ComponentScan;
|
import org.mybatis.spring.annotation.MapperScan;
|
import com.hx.util.AesUtil;
|
|
@SpringBootApplication
|
@MapperScan({"com.gitee.sunchenbin.mybatis.actable.dao.*","com.hx.other.service.dao.*"})
|
@ComponentScan(basePackages = {"com.gitee.sunchenbin.mybatis.actable.manager.*","com.hx.other.service.*","com.hx.common.*"},nameGenerator = UniqueNameGenerator.class)
|
@ServletComponentScan
|
@ForestScan(basePackages = "com.hx.other.service.api.*")
|
public class PhiOtherService extends SpringBootServletInitializer implements CommandLineRunner {
|
|
public static void main(String[] args) {
|
SpringApplication.run(PhiOtherService.class, args);
|
}
|
|
@Override
|
protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
|
return builder.sources(PhiOtherService.class);
|
}
|
|
@Override
|
public void run(String... args) throws Exception {
|
System.out.println("SpringBoot is Running...");
|
}
|
}
|