2026-02-27 10:50:07 +08:00
|
|
|
package top.wms.admin;
|
2026-02-27 10:16:46 +08:00
|
|
|
|
|
|
|
|
import cn.dev33.satoken.annotation.SaIgnore;
|
|
|
|
|
import com.alicp.jetcache.anno.config.EnableMethodCache;
|
|
|
|
|
import io.swagger.v3.oas.annotations.Hidden;
|
|
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
import org.dromara.x.file.storage.spring.EnableFileStorage;
|
|
|
|
|
import org.springframework.boot.SpringApplication;
|
|
|
|
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
2026-03-12 16:54:55 +08:00
|
|
|
import org.springframework.scheduling.annotation.EnableScheduling;
|
2026-02-27 10:16:46 +08:00
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
import top.continew.starter.core.autoconfigure.project.ProjectProperties;
|
|
|
|
|
import top.continew.starter.extension.crud.annotation.EnableCrudRestController;
|
|
|
|
|
import top.continew.starter.web.annotation.EnableGlobalResponse;
|
|
|
|
|
import top.continew.starter.web.model.R;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 启动程序
|
|
|
|
|
*
|
|
|
|
|
* @author Charles7c
|
|
|
|
|
* @since 2022/12/8 23:15
|
|
|
|
|
*/
|
|
|
|
|
@Slf4j
|
|
|
|
|
@EnableFileStorage
|
2026-02-27 10:50:07 +08:00
|
|
|
@EnableMethodCache(basePackages = "top.wms.admin")
|
2026-02-27 10:16:46 +08:00
|
|
|
@EnableGlobalResponse
|
|
|
|
|
@EnableCrudRestController
|
|
|
|
|
@RestController
|
|
|
|
|
@SpringBootApplication
|
|
|
|
|
@RequiredArgsConstructor
|
2026-03-12 16:54:55 +08:00
|
|
|
@EnableScheduling
|
2026-02-27 10:50:07 +08:00
|
|
|
public class WmsAdminApplication {
|
2026-02-27 10:16:46 +08:00
|
|
|
|
|
|
|
|
private final ProjectProperties projectProperties;
|
|
|
|
|
|
|
|
|
|
public static void main(String[] args) {
|
2026-02-27 10:50:07 +08:00
|
|
|
SpringApplication.run(WmsAdminApplication.class, args);
|
2026-02-27 10:16:46 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Hidden
|
|
|
|
|
@SaIgnore
|
|
|
|
|
@GetMapping("/")
|
|
|
|
|
public R index() {
|
|
|
|
|
return R.ok(projectProperties);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|