package cn.gygxzc.envir import cn.gygxzc.tina.cloud.jwt.session.filter.JwtSessionRepositoryFilter import org.mybatis.spring.annotation.MapperScan import org.springframework.boot.SpringApplication import org.springframework.boot.autoconfigure.SpringBootApplication import org.springframework.boot.builder.SpringApplicationBuilder import org.springframework.boot.web.servlet.support.SpringBootServletInitializer import org.springframework.cloud.client.discovery.EnableDiscoveryClient import org.springframework.cloud.openfeign.EnableFeignClients /** * 注解配置 */ @EnableDiscoveryClient @EnableFeignClients @SpringBootApplication(scanBasePackages = ["com.gxzc", "cn.gygxzc"]) @MapperScan(basePackages = ["com.gxzc", "cn.gygxzc"]) class MainApplication : SpringBootServletInitializer() { override fun configure(builder: SpringApplicationBuilder?): SpringApplicationBuilder? { return builder?.sources(MainApplication::class.java) } } fun main(args: Array) { SpringApplication.run(MainApplication::class.java, *args) }