ConsulController.java 662 字节
Newer Older
Q
qinyingjie 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
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 访问成功");
    }
}