/** * 对密钥解密 * @param enStr * @return * @throws Exception */ @ResponseBody @RequestMapping(value="/deCryptKey/{enStr}",method=RequestMethod.GET) public String deCryptKey(@PathVariable("enStr") String enStr) throws Exception{ //enStr = new String(enStr.getBytes("iso-8859-1"),"utf-8"); //enStr = java.net.URLDecoder.decode(enStr,"utf-8"); String deStr = KmService.deCryptKey(enStr); return deStr; }//源代码片段来自云代码http://yuncode.net