添加 zlmediakit-service, 启用 feignClients

This commit is contained in:
shikong 2023-08-23 11:34:11 +08:00
parent c6a7bcdcff
commit 1a11418868
4 changed files with 9 additions and 4 deletions

View File

@ -19,6 +19,12 @@
</properties>
<dependencies>
<dependency>
<groupId>cn.skcks.docking</groupId>
<artifactId>zlmediakit-service</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>cn.skcks.docking.gb28181</groupId>
<artifactId>orm</artifactId>

View File

@ -2,7 +2,9 @@ package cn.skcks.docking.gb28181;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
@EnableFeignClients
@SpringBootApplication
public class Gb28181DockingPlatformApplication {

View File

@ -2,7 +2,6 @@ package cn.skcks.docking.gb28181;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
@SpringBootApplication
public class Gb28181DockingPlatformApplicationTest {

View File

@ -14,12 +14,10 @@ import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.service.annotation.HttpExchange;
import java.util.List;
@FeignClient(name="zlmMediaServerProxy",url = "${media.url}")
@HttpExchange
@FeignClient(name="zlmMediaServerProxy", url = "${media.url}")
public interface ZlmMediaHttpClient {
@GetMapping("/index/api/getApiList")
ZlmResponse<List<String>> getApiList(@RequestParam String secret);