Skip to content

readMe.md introduces the use of retry has problem, one bean has stated several times #285

Closed
@tiandankanfeng

Description

@tiandankanfeng
@Configuration
@EnableRetry
public class Application {
    // problem
    @Bean
    public Service service() {
        return new Service();
    }

}

// problem
@Service
class Service {
    @Retryable(RemoteAccessException.class)
    public void service() {
        // ... do something
    }
    @Recover
    public void recover(RemoteAccessException e) {
       // ... panic
    }
}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions