Skip to content

Commit c34aa65

Browse files
KimDoubleBadam-sandor
authored andcommitted
fix: use close as destroyMethod of Bean (#645)
1 parent 28e40b0 commit c34aa65

File tree

1 file changed

+1
-1
lines changed
  • samples/spring-boot-plain/src/main/java/io/javaoperatorsdk/operator/sample

1 file changed

+1
-1
lines changed

samples/spring-boot-plain/src/main/java/io/javaoperatorsdk/operator/sample/Config.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public CustomServiceController customServiceController() {
1818
}
1919

2020
// Register all controller beans
21-
@Bean(initMethod = "start", destroyMethod = "stop")
21+
@Bean(initMethod = "start", destroyMethod = "close")
2222
public Operator operator(List<ResourceController> controllers) {
2323
Operator operator = new Operator(DefaultConfigurationService.instance());
2424
controllers.forEach(operator::register);

0 commit comments

Comments
 (0)