问题描述
求助!源代码被删除了.只有TOMCAT中有最后布署的,请问是否可以恢复源代码!
解决方案
解决方案二:
在google中搜索:Java反编译
解决方案三:
当然可以啊webapps底下啊
解决方案四:
用这个反编译出错.(label191;>>===这个地方出错)/////////////////////////////////label191;>>===这个地方出错///////////////////////////////packagecom.ltian.action;importcom.ltian.proxy.ProxyFactory;importcom.ltian.service.AdminService;importcom.ltian.service.impl.AdminServiceImpl;importcom.ltian.vo.AdminVo;importjava.io.PrintStream;importjavax.servlet.http.HttpServletRequest;importjavax.servlet.http.HttpServletResponse;importjavax.servlet.http.HttpSession;importorg.apache.struts.action.ActionForm;importorg.apache.struts.action.ActionForward;importorg.apache.struts.action.ActionMapping;importorg.apache.struts.actions.DispatchAction;publicclassAdminActionextendsDispatchAction{privateAdminServiceservice;publicAdminAction(){this.service=((AdminService)ProxyFactory.createProxyInstance(newAdminServiceImpl()));}publicActionForwardlogin(ActionMappingmapping,ActionFormform,HttpServletRequestrequest,HttpServletResponseresponse)throwsException{StringuserName=request.getParameter("userName");StringuserPass=request.getParameter("userPass");StringcheckCode=request.getParameter("code");StringuserCode=(String)request.getSession().getAttribute("rand");if((userCode!=null)&&(checkCode!=null)){if(checkCode.equals(userCode)){[size=24px]if((userName==null)||(userPass==null))breaklabel191;[/size]AdminVologinedVo=this.service.verify(newAdminVo(userName,userPass));if(loginedVo==null){request.setAttribute("tip","对不起,你的用户名或密码错误!");request.setAttribute("url","/ltian/index.jsp");returnnewActionForward("/ltian/error.jsp");}request.getSession().setAttribute("admin",loginedVo);returnnewActionForward("/ltian/main.html",true);}request.setAttribute("tip","对不起,您的验证码有误!");request.setAttribute("url","/ltian/index.jsp");returnnewActionForward("/ltian/error.jsp");}label191:request.setAttribute("tip","对不起,系统出现错误!");request.setAttribute("url","/ltian/index.jsp");returnnewActionForward("/ltian/error.jsp");}publicActionForwardaddAdmin(ActionMappingmapping,ActionFormform,HttpServletRequestrequest,HttpServletResponseresponse)throwsException{Stringusername=request.getParameter("username");Stringpassword=request.getParameter("password");if((username!=null)&&(password!=null)&&(username!="")&&(password!=null)){this.service.insert(newAdminVo(username,password));request.setAttribute("tip","添加成功!");request.setAttribute("url","/ltian/AddAdmin.jsp");returnnewActionForward("/ltian/completed.jsp");}request.setAttribute("tip","系统出现错误!");request.setAttribute("url","/ltian/AddAdmin.jsp");returnnewActionForward("/ltian/completed.jsp");}publicActionForwardupdateAdminPwd(ActionMappingmapping,ActionFormform,HttpServletRequestrequest,HttpServletResponseresponse)throwsException{Stringusername=request.getParameter("username");Stringoldpwd=request.getParameter("passwordold");Stringnewpwd=request.getParameter("passwordnew");Stringrnewpwd=request.getParameter("repasswordnew");System.out.println(oldpwd+","+newpwd+","+rnewpwd);if((username!=null)&&(oldpwd!=null)&&(newpwd!=null)&&(rnewpwd!=null)&&(newpwd.equals(rnewpwd))){try{this.service.chagePass(username,oldpwd,newpwd);request.setAttribute("tip","修改密码成功!");request.setAttribute("url","/ltian/UpdatePwd.jsp");returnnewActionForward("/ltian/completed.jsp");}catch(Exceptione){e.printStackTrace();request.setAttribute("tip","请确认您的密码!");request.setAttribute("url","/ltian/UpdatePwd.jsp");returnnewActionForward("/ltian/error.jsp");}}request.setAttribute("tip","系统错误!");request.setAttribute("url","/ltian/main.html");returnnewActionForward("/ltian/main.html");}publicActionForwardlogout(ActionMappingmapping,ActionFormform,HttpServletRequestrequest,HttpServletResponseresponse)throwsException{request.getSession().removeAttribute("admin");request.getSession().invalidate();returnnewActionForward("/ltian/index.jsp",true);}}
解决方案五:
不知道大家知道eclipse中有个反编译的插件名字叫什么吗?
解决方案六:
用java_反编jd-gui-0.2.10.windows.zip也有eclipse插件