class ObjectSendController {

    @GetMapping("/sendOject")
    public String sendOjectController(){
        try {
            User user=new User();
            user.setName("longzhiran");
            user.setAge("18");
            objectSender.send(user);
        } catch (Exception e) {
            e.printStackTrace();
            return "执行失败";
        }
        return"执行成功";
    }

}