-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
64 changed files
with
339 additions
and
345 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,3 +29,5 @@ HELP.md | |
.vscode/ | ||
|
||
.flattened-pom.xml | ||
|
||
/data/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 0 additions & 55 deletions
55
src/main/java/com/example/easy/retry/config/SwaggerConfig.java
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
src/main/java/com/example/easy/retry/listener/EasyRetryChannelReconnectListener.java
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
src/main/java/com/example/easy/retry/listener/EasyRetryClosedListener.java
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
src/main/java/com/example/easy/retry/listener/EasyRetryClosingListener.java
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
src/main/java/com/example/easy/retry/listener/EasyRetryStartedListener.java
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
src/main/java/com/example/easy/retry/listener/EasyRetryStartingListener.java
This file was deleted.
Oops, something went wrong.
12 changes: 6 additions & 6 deletions
12
...retry/EasyRetrySpringbootApplication.java → ...ailjob/SnailJobSpringbootApplication.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
package com.example.easy.retry; | ||
package com.example.snailjob; | ||
|
||
import com.aizuda.easy.retry.client.starter.EnableEasyRetry; | ||
import com.aizuda.snailjob.client.starter.EnableSnailJob; | ||
import org.mybatis.spring.annotation.MapperScan; | ||
import org.springframework.boot.SpringApplication; | ||
import org.springframework.boot.autoconfigure.SpringBootApplication; | ||
|
||
import java.util.TimeZone; | ||
|
||
@SpringBootApplication | ||
@EnableEasyRetry(group = "easy_retry_demo_group") | ||
@MapperScan("com.example.easy.retry.dao") | ||
public class EasyRetrySpringbootApplication { | ||
@EnableSnailJob(group = "snail_job_demo_group") | ||
@MapperScan("com.example.snailjob.dao") | ||
public class SnailJobSpringbootApplication { | ||
|
||
public static void main(String[] args) { | ||
TimeZone.setDefault(TimeZone.getTimeZone("Asia/Shanghai")); | ||
SpringApplication.run(EasyRetrySpringbootApplication.class, args); | ||
SpringApplication.run(SnailJobSpringbootApplication.class, args); | ||
} | ||
|
||
} |
55 changes: 55 additions & 0 deletions
55
src/main/java/com/example/snailjob/config/SwaggerConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
package com.example.snailjob.config; | ||
|
||
import com.aizuda.snailjob.common.core.util.SnailJobVersion; | ||
import io.swagger.v3.oas.models.ExternalDocumentation; | ||
import io.swagger.v3.oas.models.OpenAPI; | ||
import io.swagger.v3.oas.models.info.Info; | ||
import io.swagger.v3.oas.models.info.License; | ||
import org.springdoc.core.models.GroupedOpenApi; | ||
import org.springframework.context.annotation.Bean; | ||
import org.springframework.context.annotation.Configuration; | ||
|
||
|
||
/** | ||
* @author: www.byteblogs.com | ||
* @date : 2023-07-17 18:19 | ||
* @since 2.1.0 | ||
*/ | ||
@Configuration | ||
public class SwaggerConfig { | ||
|
||
@Bean | ||
public OpenAPI springShopOpenAPI() { | ||
return new OpenAPI() | ||
.info(new Info() | ||
.title("Snail Job Example") | ||
.description("<h1>SnailJob是致力提高分布式业务系统一致性的分布式重试平台</h1> \n" + | ||
"<h3>官网地址: https://www.easyretry.com/</h3>" + | ||
"<h3>在线体验地址: http://preview.easyretry.com/</h3> " + | ||
"<h3>源码地址: https://gitee.com/byteblogs168/easy-retry-demo</h3>" + | ||
"<h3>特别提醒: 🌻在您使用测试案例之前请认真的阅读官网.</h3>") | ||
.version(SnailJobVersion.getVersion()) | ||
.license(new License().name("Apache 2.0").url("https://www.easyretry.com/"))) | ||
.externalDocs(new ExternalDocumentation() | ||
.description("视频教程:从0到1快速了解分布式重试组件EasyRetry") | ||
.url("https://www.ixigua.com/pseries/7272009348824433213/")) | ||
; | ||
} | ||
|
||
@Bean | ||
public GroupedOpenApi adminApi() { | ||
return GroupedOpenApi.builder() | ||
//分组名 | ||
.group("user") | ||
.pathsToMatch("/**") | ||
//扫描路径,将路径下有swagger注解的接口解析到文档中 | ||
.packagesToScan("com.example.easy.retry.controller") | ||
.build(); | ||
} | ||
} | ||
|
||
|
||
|
||
|
||
|
||
|
4 changes: 2 additions & 2 deletions
4
...roller/LocalAndRemoteRetryController.java → ...roller/LocalAndRemoteRetryController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...ontroller/WorkflowCallbackController.java → ...ontroller/WorkflowCallbackController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
...tomized/MultiParamIdempotentGenerate.java → ...tomized/MultiParamIdempotentGenerate.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 6 additions & 7 deletions
13
...try/customized/OrderCompleteCallback.java → ...job/customized/OrderCompleteCallback.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 4 additions & 6 deletions
10
...customized/OrderIdempotentIdGenerate.java → ...customized/OrderIdempotentIdGenerate.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 3 additions & 5 deletions
8
...sy/retry/customized/OrderRetryMethod.java → ...snailjob/customized/OrderRetryMethod.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 3 additions & 4 deletions
7
...omized/SingleParamIdempotentGenerate.java → ...omized/SingleParamIdempotentGenerate.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.