标签:exception dir string word oid bsp sig rest rect
RESTFul 接口中调用重定向到指定 url
@RequestMapping(value = "sso", method = RequestMethod.GET) public void sso(HttpServletRequest request, HttpServletResponse response) throws IOException { List<Users> users = usersService.findUsers("loginName", "testuser1"); Users user = users.get(0); String url = "http://10.92.2.146/user/signin"; url = String.format("%s?account=%s&password=%s", url, user.getLoginName(), user.getPassword()); response.sendRedirect(url); }
标签:exception dir string word oid bsp sig rest rect
原文地址:https://www.cnblogs.com/zhiqsyr/p/9771677.html