package com.mes.controller.userInfo; import com.mes.common.CacheUtil; import com.mes.common.Result; import com.mes.service.userInfo.SysMenuService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @RestController @RequestMapping("/menu") public class SysMenuController { @Autowired private CacheUtil cacheUtil; @Autowired private SysMenuService sysMenuService; @GetMapping public Result getMenu(){ //MyChannelHandlerPool myChannelHandlerPool = new MyChannelHandlerPool(); //myChannelHandlerPool.sendMsg("123"); //MyChannelHandlerPool.channelGroup.writeAndFlush( new TextWebSocketFrame("123123")); return Result.seccess(sysMenuService.getMenu()); } }