日照智慧社区接口服务
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

24 lines
678 B

package com.epmet.controller;
import com.epmet.commons.tools.utils.Result;
import com.epmet.feign.LbFeignClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.servlet.http.HttpServletRequest;
@RestController
@RequestMapping("lbtest")
public class LbTestController {
@Autowired
private LbFeignClient lbFeignClient;
@PostMapping("get-host")
public Result getHost() {
Result host = lbFeignClient.getHost();
return host;
}
}