All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.dromara.dynamictp.example.controller.TestController Maven / Gradle / Ivy

There is a newer version: 1.1.9.1-3.x
Show newest version
package org.dromara.dynamictp.example.controller;

import org.dromara.dynamictp.example.brpc.BrpcClientService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author fabian4
 */
@Slf4j
@RestController
@SuppressWarnings("all")
public class TestController {

    @Resource
    private BrpcClientService brpcClientService;

    @GetMapping("/dtp-example-adapter/testBrpc")
    public String testBrpc() throws InterruptedException {
        return brpcClientService.getUserName(111L);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy