Open zhonghq opened 7 years ago
获取信道连接地址接口在官方demo下可以正常发挥信道服务器连接地址。然而当我把sdk集成到springboot中时此接口没有返回兑现,经过调试发现了一个编码错误 方法为tunnelService.handle() 原代码 if (request.getMethod().toUpperCase() == "GET") { handleGet(handler, options); } if (request.getMethod().toUpperCase() == "POST") { handlePost(handler, options); } 修改后代码 if (request.getMethod().toUpperCase().equals("GET")) { handleGet(handler, options); } if (request.getMethod().toUpperCase().equals("POST")) { handlePost(handler, options); } 修改后此接口正常
有没有哪位见识过这种问题的解释一下为何在sevlet居然没有问题
获取信道连接地址接口在官方demo下可以正常发挥信道服务器连接地址。然而当我把sdk集成到springboot中时此接口没有返回兑现,经过调试发现了一个编码错误 方法为tunnelService.handle() 原代码 if (request.getMethod().toUpperCase() == "GET") { handleGet(handler, options); } if (request.getMethod().toUpperCase() == "POST") { handlePost(handler, options); } 修改后代码 if (request.getMethod().toUpperCase().equals("GET")) { handleGet(handler, options); } if (request.getMethod().toUpperCase().equals("POST")) { handlePost(handler, options); } 修改后此接口正常