package com.kwan.springcloud.controller; import com.kwan.springcloud.response.Result; import org.springframework.http.MediaType; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; /** * portal控制器 * * @author : qinyingjie * @version : 2.2.0 * @date : 2023/1/8 11:12 */ @RestController @RequestMapping("/consul") public class ConsulController { @GetMapping(value = "/test", produces = MediaType.APPLICATION_PROBLEM_JSON_VALUE) public Result test() { return Result.ok("consul 访问成功"); } }