Commit 96a7ff94 by 张文涛

UT

parent 7a59783f
......@@ -23,6 +23,10 @@
<artifactId>common-core</artifactId>
</dependency>
<dependency>
<groupId>com.jiejing.fitness</groupId>
<artifactId>fitness-share</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-openfeign</artifactId>
</dependency>
......@@ -84,7 +88,11 @@
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger-ui</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
......
......@@ -19,7 +19,7 @@ public class MemberCardScheduledJob {
* 每天凌晨1点执行
*/
@Scheduled(cron = "0 0 1 * * ?")
public void autoRemove() {
public void scheduledTask() {
memberCardApi.scheduledTask();
}
}
rpc:
url:
member: http://dev-fit-app.xiaomai5.com/member
studio: http://dev-fit-app.xiaomai5.com/studio
finance: http://dev-fit-app.xiaomai5.com/finance
promotion: http://dev-fit-app.xiaomai5.com/promotion
cam: http://dev-fit-app.xiaomai5.com/fit-cam
permcenter: http://dev-fit-app.xiaomai5.com/permcenter
schedulecenter: http://dev-fit-app.xiaomai5.com/schedulecenter
\ No newline at end of file
package com.jiejing.bff.crontab.server.cam;
import javax.annotation.Resource;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
/**
* @author techie
* @date 2024/3/18
*/
@RunWith(SpringRunner.class)
@SpringBootTest
public class MemberCardScheduledJobTest {
@Resource
private MemberCardScheduledJob memberCardScheduledJob;
@Test
public void test(){
memberCardScheduledJob.scheduledTask();
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment