小编Cla*_*idr的帖子

在每次 Spring Retry 尝试时更改参数值

我有以下方法,即@Retryable:

    @Retryable(value = HttpClientErrorException.class)
    public Integer callToExternalService(DateTime start, DateTime end) throws MyException
Run Code Online (Sandbox Code Playgroud)

我的问题是,每次方法重试时是​​否可以修改输入参数,因为我需要使用不同的值进行休息调用。对于这种情况,是否有类似的选项@Recover

spring spring-retry

6
推荐指数
1
解决办法
2313
查看次数

类型 'JavaCompile' 属性 'options.compilerArgumentProviders.apt$0.name' 缺少输入或输出注释。升级到 Gradle 7 后出错

升级到 Gradle 7.0 并进行构建后,我遇到了以下失败:

> Task :compileJava FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Some problems were found with the configuration of task ':compileJava' (type 'JavaCompile').
  - Type 'JavaCompile' property 'options.compilerArgumentProviders.apt$0.name' is missing an input or output annotation.
    
    Reason: A property without annotation isn't considered during up-to-date checking.
    
    Possible solutions:
      1. Add an input or output annotation.
      2. Mark it as @Internal.
    
    Please refer to https://docs.gradle.org/7.0/userguide/validation_problems.html#missing_annotation for more details about this problem.
  - Type 'JavaCompile' property …
Run Code Online (Sandbox Code Playgroud)

java spring gradle gradlew spring-boot

5
推荐指数
2
解决办法
1670
查看次数

标签 统计

spring ×2

gradle ×1

gradlew ×1

java ×1

spring-boot ×1

spring-retry ×1