gunshi-project-ss/src/main/java/com/gunshi/project/xyt/Main.java

37 lines
1.0 KiB
Java
Raw Normal View History

2024-01-23 09:19:23 +08:00
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;
2024-01-23 09:19:23 +08:00
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(
2024-01-23 15:47:28 +08:00
url = "http://local.gunshiiot.com:18083/gunshiApp/xyt",
2024-01-23 09:19:23 +08:00
description = "线上测试环境"
)
}
)
@GunShiApplication
@MapperScan(basePackages = {"com.gunshi.**.mapper", "com.gunshi.**.model"})
2024-01-23 09:19:23 +08:00
@Slf4j
public class Main {
public static void main(String[] args) {
SpringApplication.run(Main.class, args);
}
}