package com.gunshi.project.xyt; 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; /** * 类描述 * * @author lyf * @version 1.0.0 * @since 2024-01-19 */ @OpenAPIDefinition( servers = { @Server( url = "http://localhost:24101/gunshiApp/xyt", description = "本地测试环境" ), @Server( url = "http://local.gunshiiot.com:18083/gunshiApp/xyt", description = "线上测试环境" ) } ) @GunShiApplication @MapperScan(basePackages = {"com.gunshi.**.mapper", "com.gunshi.**.model"}) @Slf4j public class Main { public static void main(String[] args) { SpringApplication.run(Main.class, args); } }