nacos feign
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
package com.czg.controller;
|
||||
|
||||
import com.czg.feign.FeignSystemService;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* @author GYJoker
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/feign")
|
||||
public class FeignController {
|
||||
|
||||
@Resource
|
||||
private FeignSystemService feignSystemService;
|
||||
|
||||
@RequestMapping("/test")
|
||||
public String test() {
|
||||
String string = feignSystemService.testCall("sssss");
|
||||
System.out.println(string);
|
||||
return "test";
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user