Skip to content

Commit 767858d

Browse files
authored
fix: use close as destroyMethod of Bean (#645)
1 parent 5891ced commit 767858d

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

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

+1-1
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)