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

34 lines
1.1 KiB
Java
Raw Normal View History

2025-07-17 15:26:39 +08:00
package com.gunshi.project.hsz;
2024-01-23 09:19:23 +08:00
import com.github.jeffreyning.mybatisplus.conf.EnableMPP;
2024-01-23 09:19:23 +08:00
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;
import org.springframework.cache.annotation.EnableCaching;
2024-01-23 09:19:23 +08:00
@OpenAPIDefinition(
servers = {
@Server(
2025-07-17 15:26:39 +08:00
url = "http://localhost:24105/gunshiApp/hsz",
description = "本地测试环境"
),
@Server(
2025-07-17 15:26:39 +08:00
url = "http://local.gunshiiot.com:18083/gunshiApp/hsz",
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
@EnableMPP
@EnableCaching
2024-01-23 09:19:23 +08:00
public class Main {
public static void main(String[] args) {
SpringApplication.run(Main.class, args);
}
}