Skip to content

Commit d56e9ef

Browse files
author
wlanboy
committed
constrauctor
1 parent 0683329 commit d56e9ef

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

src/main/java/com/wlanboy/javahttpclient/controller/DiagnosticController.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package com.wlanboy.javahttpclient.controller;
22

33
import com.wlanboy.javahttpclient.client.K8sDiagnosticService;
4-
import org.springframework.beans.factory.annotation.Autowired;
54
import org.springframework.http.ResponseEntity;
65
import org.springframework.web.bind.annotation.*;
76

@@ -12,8 +11,11 @@
1211
@RequestMapping("/api/k8s")
1312
public class DiagnosticController {
1413

15-
@Autowired
16-
private K8sDiagnosticService k8sService;
14+
private final K8sDiagnosticService k8sService;
15+
16+
public DiagnosticController(K8sDiagnosticService k8sService) {
17+
this.k8sService = k8sService;
18+
}
1719

1820
/**
1921
* Liefert den allgemeinen K8s Kontext (Namespace, Pod, Sidecar Status).

0 commit comments

Comments
 (0)