Class UdpController

java.lang.Object
com.bytedesk.core.cluster.udp.UdpController

@RestController @RequestMapping("/udp/v1") public class UdpController extends Object
  • Field Details

  • Constructor Details

    • UdpController

      public UdpController()
  • Method Details

    • send

      @GetMapping("/send") public JsonResult<?> send(@RequestParam("msg") String msg) throws Exception
      测试UDP http://127.0.0.1:9003/udp/v1/send?msg=123456
      Returns:
      Throws:
      Exception
    • sayHello

      @GetMapping("/say") public JsonResult<?> sayHello(@RequestParam("msg") String msg) throws Exception
      测试UDP http://127.0.0.1:9003/udp/v1/say?msg=123456
      Returns:
      Throws:
      Exception