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;
|
2024-01-23 15:02:48 +08:00
|
|
|
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(
|
2024-01-23 15:35:30 +08:00
|
|
|
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
|
2024-01-23 15:02:48 +08:00
|
|
|
@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);
|
|
|
|
|
}
|
|
|
|
|
}
|