孙永军 1 年之前
父節點
當前提交
773de7c519
共有 2 個文件被更改,包括 8 次插入6 次删除
  1. 6 4
      src/main/java/com/smcic/api/epg/controller/EpgController.java
  2. 2 2
      ssp-server.yml

+ 6 - 4
src/main/java/com/smcic/api/epg/controller/EpgController.java

@@ -7,10 +7,7 @@ import com.smcic.api.epg.service.impl.ChannelService;
 import com.smcic.api.epg.service.impl.EpgDisableConfigService;
 import com.smcic.api.epg.service.impl.ProgramService;
 import org.apache.ibatis.annotations.Param;
-import org.springframework.web.bind.annotation.PostMapping;
-import org.springframework.web.bind.annotation.RequestBody;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RestController;
+import org.springframework.web.bind.annotation.*;
 
 import javax.annotation.Resource;
 import java.time.LocalDateTime;
@@ -30,6 +27,11 @@ public class EpgController {
     @Resource
     private EpgDisableConfigService epgDisableConfigService;
 
+    @GetMapping("check")
+    public void check(){
+
+    }
+
     @RequestMapping("tv")
     public List<Channel> tv(){
         return channelService.tvList();

+ 2 - 2
ssp-server.yml

@@ -39,13 +39,13 @@ spec:
           livenessProbe:
             httpGet:
               port: 9002
-              path: /ssp-server/check
+              path: /epg/check
             initialDelaySeconds: 5
             periodSeconds: 3
           readinessProbe:
             httpGet:
               port: 9002
-              path: /ssp-server/check
+              path: /epg/check
             initialDelaySeconds: 5
             periodSeconds: 3
             timeoutSeconds: 1