feat: 1.0.0
修改example模块内的包路径
This commit is contained in:
parent
850b133db9
commit
a731ad70e2
@ -5,7 +5,7 @@ import org.springframework.context.annotation.ComponentScan;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
@Configuration
|
||||
@ComponentScan("com.x.retry.client.core")
|
||||
@ComponentScan("com.aizuda.easy.retry.client.core")
|
||||
@ConditionalOnProperty(prefix = "easy-retry", name = "enabled", havingValue = "true")
|
||||
public class XRetryClientAutoConfiguration {
|
||||
|
||||
|
@ -23,9 +23,10 @@
|
||||
<fileNamePattern>log/sys.%d.%i.log</fileNamePattern>
|
||||
<!-- 每产生一个日志文件,该日志文件的保存期限为30天 -->
|
||||
<maxHistory>30</maxHistory>
|
||||
<cleanHistoryOnStart>true</cleanHistoryOnStart>
|
||||
<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
|
||||
<!-- maxFileSize:这是活动文件的大小,默认值是10MB,本篇设置为1KB,只是为了演示 -->
|
||||
<maxFileSize>1KB</maxFileSize>
|
||||
<maxFileSize>10MB</maxFileSize>
|
||||
</timeBasedFileNamingAndTriggeringPolicy>
|
||||
</rollingPolicy>
|
||||
<encoder>
|
||||
|
@ -38,7 +38,7 @@
|
||||
<dependency>
|
||||
<groupId>com.aizuda</groupId>
|
||||
<artifactId>easy-retry-client-starter</artifactId>
|
||||
<version>0.0.4.2</version>
|
||||
<version>1.0.0.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.baomidou</groupId>
|
||||
|
@ -1,6 +1,6 @@
|
||||
package com.example;
|
||||
|
||||
import com.x.retry.client.starter.EnableXRetry;
|
||||
import com.aizuda.easy.retry.client.starter.EnableXRetry;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
|
||||
|
@ -1,7 +1,7 @@
|
||||
package com.example;
|
||||
|
||||
import com.x.retry.client.core.plugin.RequestHeaderPlugins;
|
||||
import com.x.retry.client.core.plugin.ResponseHeaderPlugins;
|
||||
import com.aizuda.easy.retry.client.core.plugin.RequestHeaderPlugins;
|
||||
import com.aizuda.easy.retry.client.core.plugin.ResponseHeaderPlugins;
|
||||
import org.springframework.http.HttpHeaders;
|
||||
import org.springframework.http.HttpRequest;
|
||||
import org.springframework.http.client.ClientHttpRequestExecution;
|
||||
|
@ -1,6 +1,6 @@
|
||||
package com.example;
|
||||
|
||||
import com.x.retry.client.core.plugin.RequestHeaderPlugins;
|
||||
import com.aizuda.easy.retry.client.core.plugin.RequestHeaderPlugins;
|
||||
import feign.RequestInterceptor;
|
||||
import feign.RequestTemplate;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
@ -1,7 +1,6 @@
|
||||
package com.example.client;
|
||||
|
||||
//import org.springframework.cloud.netflix.feign.FeignClient;
|
||||
import com.x.retry.common.core.model.Result;
|
||||
import com.aizuda.easy.retry.common.core.model.Result;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
package com.example.client;
|
||||
|
||||
import com.x.retry.client.core.plugin.ResponseHeaderPlugins;
|
||||
import com.aizuda.easy.retry.client.core.plugin.ResponseHeaderPlugins;
|
||||
import feign.FeignException;
|
||||
import feign.Response;
|
||||
import feign.codec.DecodeException;
|
||||
|
@ -1,8 +1,8 @@
|
||||
package com.example.controller;
|
||||
|
||||
import com.x.retry.client.core.intercepter.RetrySiteSnapshot;
|
||||
import com.x.retry.common.core.constant.SystemConstants;
|
||||
import com.x.retry.common.core.model.Result;
|
||||
import com.aizuda.easy.retry.client.core.intercepter.RetrySiteSnapshot;
|
||||
import com.aizuda.easy.retry.common.core.constant.SystemConstants;
|
||||
import com.aizuda.easy.retry.common.core.model.Result;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
@ -1,8 +1,8 @@
|
||||
package com.example.controller;
|
||||
|
||||
|
||||
import com.aizuda.easy.retry.common.core.annotation.OriginalControllerReturnValue;
|
||||
import com.example.demo.TestExistsTransactionalRetryService;
|
||||
import com.x.retry.common.core.annotation.OriginalControllerReturnValue;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
|
@ -1,8 +1,7 @@
|
||||
package com.example.controller;
|
||||
|
||||
|
||||
import com.x.retry.client.core.annotation.Retryable;
|
||||
import com.x.retry.common.core.model.Result;
|
||||
import com.aizuda.easy.retry.client.core.annotation.Retryable;
|
||||
import com.aizuda.easy.retry.common.core.model.Result;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
|
@ -1,7 +1,7 @@
|
||||
package com.example.controller;
|
||||
|
||||
import com.aizuda.easy.retry.common.core.model.Result;
|
||||
import com.example.client.DemoClient;
|
||||
import com.x.retry.common.core.model.Result;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
|
@ -1,8 +1,8 @@
|
||||
package com.example.controller;
|
||||
|
||||
import com.aizuda.easy.retry.client.core.annotation.Retryable;
|
||||
import com.aizuda.easy.retry.common.core.model.Result;
|
||||
import com.example.client.DemoClient;
|
||||
import com.x.retry.client.core.annotation.Retryable;
|
||||
import com.x.retry.common.core.model.Result;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
|
@ -1,7 +1,7 @@
|
||||
package com.example.demo;
|
||||
|
||||
import com.x.retry.client.core.strategy.RetryMethod;
|
||||
import com.x.retry.common.core.util.JsonUtil;
|
||||
import com.aizuda.easy.retry.client.core.strategy.RetryMethod;
|
||||
import com.aizuda.easy.retry.common.core.util.JsonUtil;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
package com.example.demo;
|
||||
|
||||
import com.x.retry.client.core.annotation.Retryable;
|
||||
import com.aizuda.easy.retry.client.core.annotation.Retryable;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
@ -1,6 +1,6 @@
|
||||
package com.example.demo;
|
||||
|
||||
import com.x.retry.common.core.model.Result;
|
||||
import com.aizuda.easy.retry.common.core.model.Result;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.web.client.RestTemplate;
|
||||
|
@ -1,8 +1,7 @@
|
||||
package com.example.demo;
|
||||
|
||||
import cn.hutool.core.lang.UUID;
|
||||
import com.x.retry.client.core.annotation.Retryable;
|
||||
import com.x.retry.client.core.retryer.RetryType;
|
||||
import com.aizuda.easy.retry.client.core.annotation.Retryable;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
|
@ -1,11 +1,11 @@
|
||||
package com.example.demo;
|
||||
|
||||
import com.aizuda.easy.retry.client.core.annotation.Retryable;
|
||||
import com.aizuda.easy.retry.common.core.model.Result;
|
||||
import com.example.mapper.SchoolMapper;
|
||||
import com.example.mapper.StudentMapper;
|
||||
import com.example.po.School;
|
||||
import com.example.po.Student;
|
||||
import com.x.retry.client.core.annotation.Retryable;
|
||||
import com.x.retry.common.core.model.Result;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
@ -1,12 +1,12 @@
|
||||
package com.example.demo;
|
||||
|
||||
import com.aizuda.easy.retry.client.core.annotation.Retryable;
|
||||
import com.aizuda.easy.retry.common.core.model.Result;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.example.mapper.SchoolMapper;
|
||||
import com.example.mapper.StudentMapper;
|
||||
import com.example.po.School;
|
||||
import com.example.po.Student;
|
||||
import com.x.retry.client.core.annotation.Retryable;
|
||||
import com.x.retry.common.core.model.Result;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
@ -1,10 +1,9 @@
|
||||
package com.example.demo;
|
||||
|
||||
import com.aizuda.easy.retry.client.core.annotation.Retryable;
|
||||
import com.aizuda.easy.retry.common.core.log.LogUtils;
|
||||
import com.example.model.Dog;
|
||||
import com.example.model.Zoo;
|
||||
import com.x.retry.client.core.annotation.Retryable;
|
||||
import com.x.retry.client.core.retryer.RetryType;
|
||||
import com.x.retry.common.core.log.LogUtils;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
package com.example.demo;
|
||||
|
||||
import com.x.retry.client.core.annotation.Retryable;
|
||||
import com.aizuda.easy.retry.client.core.annotation.Retryable;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
/**
|
||||
|
@ -1,7 +1,7 @@
|
||||
package com.example.demo;
|
||||
|
||||
import com.x.retry.client.core.annotation.Retryable;
|
||||
import com.x.retry.client.core.retryer.RetryType;
|
||||
import com.aizuda.easy.retry.client.core.annotation.Retryable;
|
||||
import com.aizuda.easy.retry.client.core.retryer.RetryType;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
/**
|
||||
|
@ -1,12 +1,12 @@
|
||||
package com.example;
|
||||
|
||||
import com.aizuda.easy.retry.client.core.report.ReportHandler;
|
||||
import com.aizuda.easy.retry.client.core.window.RetryLeapArray;
|
||||
import com.aizuda.easy.retry.common.core.model.Result;
|
||||
import com.aizuda.easy.retry.server.model.dto.RetryTaskDTO;
|
||||
import com.example.client.DemoClient;
|
||||
import com.example.mapper.SchoolMapper;
|
||||
import com.example.po.School;
|
||||
import com.x.retry.client.core.report.ReportHandler;
|
||||
import com.x.retry.client.core.window.RetryLeapArray;
|
||||
import com.x.retry.common.core.model.Result;
|
||||
import com.x.retry.server.model.dto.RetryTaskDTO;
|
||||
import lombok.SneakyThrows;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
@ -1,9 +1,9 @@
|
||||
package com.example;
|
||||
|
||||
import com.aizuda.easy.retry.common.core.model.Result;
|
||||
import com.example.demo.RemoteService;
|
||||
import com.example.demo.TestExistsTransactionalRetryService;
|
||||
import com.example.demo.TestExistsTransactionalRetryService2;
|
||||
import com.x.retry.common.core.model.Result;
|
||||
import lombok.SneakyThrows;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
@ -1,8 +1,8 @@
|
||||
package com.example;
|
||||
|
||||
import com.aizuda.easy.retry.common.core.model.Result;
|
||||
import com.example.demo.NestMethodService;
|
||||
import com.example.demo.RemoteService;
|
||||
import com.x.retry.common.core.model.Result;
|
||||
import lombok.SneakyThrows;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.mockito.Mockito;
|
||||
|
Loading…
Reference in New Issue
Block a user