test: 搭建审批流开发测试底座

This commit is contained in:
2026-10-30 17:50:20 +08:00
parent d83d178654
commit 9f5f38575a
10 changed files with 132 additions and 65 deletions
@@ -3,6 +3,7 @@ package com.gxwebsoft.common.core.config;
import cn.hutool.core.util.StrUtil;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;
import springfox.documentation.builders.ApiInfoBuilder;
import springfox.documentation.builders.PathSelectors;
import springfox.documentation.builders.RequestHandlerSelectors;
@@ -24,6 +25,7 @@ import java.util.List;
*/
@EnableOpenApi
@Configuration
@Profile("!test")
public class SwaggerConfig {
@Resource
private ConfigProperties config;
@@ -17,6 +17,7 @@ import com.gxwebsoft.think.service.ThinkOrderService;
import com.gxwebsoft.think.service.ThinkSiteService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Profile;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@@ -35,7 +36,7 @@ import java.util.concurrent.TimeUnit;
@Api(tags = "定时任务")
@RestController
@RequestMapping("/api/scheduled")
@Profile("!test")
public class SchedulingController extends BaseController {
@Resource
@@ -9,6 +9,7 @@ import com.gxwebsoft.think.entity.*;
import com.gxwebsoft.think.service.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Profile;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
@@ -34,6 +35,7 @@ import java.util.stream.Collectors;
* @since 2026-03-13
*/
@Component
@Profile("!test")
public class ThinkFaceAccessTask {
private static final Logger logger = LoggerFactory.getLogger(ThinkFaceAccessTask.class);