package top.wms.admin; 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; import org.springframework.scheduling.annotation.EnableScheduling; 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 @EnableMethodCache(basePackages = "top.wms.admin") @EnableGlobalResponse @EnableCrudRestController @RestController @SpringBootApplication @RequiredArgsConstructor @EnableScheduling public class WmsAdminApplication { private final ProjectProperties projectProperties; public static void main(String[] args) { SpringApplication.run(WmsAdminApplication.class, args); } @Hidden @SaIgnore @GetMapping("/") public R index() { return R.ok(projectProperties); } }