当前位置:编程学习 > JAVA >>

菜鸟求救!!

本人菜鸟一只,想请教各位大神一下。在这个类中,我第一个方法里的verifyCode 要怎么样才能放到第二个方法的注释里呢(第二个Get里面)?

@Path("passwd")
@LoginRequired
public class setCodeController {
  @Autowired
  private Invocation inv;
  @Autowired
  private AccountService accountService;

  @Get("apply")
  public JSONObject Apply() {
    String userName = inv.getParameter("userName");
    SimpleDateFormat timE = new SimpleDateFormat("yyyy-MM-dd HH:mm");
    String time = timE.format(new java.util.Date());
    String verifyCode = new MD5(userName+time).toString();
    
//    String sender = null;
//    String subject = null;
//    String subject = null;
//    JsonRun.jsonRun(sender,user,subject,subject);
    return null;
  }

  @Get(verifyCode )
  public JSONObject setcode(){
    
    
  }

autowired string null class path --------------------编程问答-------------------- 我想实现的是通过邮箱找回密码的功能,在Apply方法中生成一个临时参数,把这个参数作为修改密码的页面的网址(也就是setcode方法),现在不知道怎么把参数放过去,头疼中。求大神帮助~~谢谢了!! --------------------编程问答-------------------- 方法外定义一个变量,方法里面给变量赋值,另外个方法补救可以使用这个变量了么,不知道是不是这么个意思
补充:Java ,  Java相关
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,