package com.gunshi.project.hsz; import com.github.jeffreyning.mybatisplus.conf.EnableMPP; import com.gunshi.core.annotation.GunShiApplication; import io.swagger.v3.oas.annotations.OpenAPIDefinition; import io.swagger.v3.oas.annotations.servers.Server; import lombok.extern.slf4j.Slf4j; import org.mybatis.spring.annotation.MapperScan; import org.springframework.boot.SpringApplication; import org.springframework.cache.annotation.EnableCaching; @OpenAPIDefinition( servers = { @Server( url = "http://localhost:24105/gunshiApp/hsz", description = "本地测试环境" ), @Server( url = "http://local.gunshiiot.com:18083/gunshiApp/hsz", description = "线上测试环境" ) } ) @GunShiApplication @MapperScan(basePackages = {"com.gunshi.**.mapper", "com.gunshi.**.model"}) @Slf4j @EnableMPP @EnableCaching public class Main { public static void main(String[] args) { SpringApplication.run(Main.class, args); } }