添加 zlmediakit-service, 启用 feignClients
This commit is contained in:
parent
c6a7bcdcff
commit
1a11418868
@ -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>
|
||||
|
@ -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 {
|
||||
|
||||
|
@ -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 {
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user