package controller;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;

import service.SellerManagementService;
//dash
@Controller()
public class AjaxController {
	@Resource(name = "sellerManagementServiceImp")
	private SellerManagementService sellerManagementServiceImp;

		
}

@@ -31,297 +31,869 @@
 java
-x.annotation.Resource;%0D%0A%0D%0Aimport org.springframework.stereotype.Controller;%0D%0A%0D%0Aimport service.SellerManagementService;%0D%0A//dash%0D%0A@Controller()%0D%0Apublic class AjaxController %7B%0D%0A%09@Resource(name = %22sellerManagementServiceImp%22)%0D%0A%09private SellerManagementService sellerManagementServiceImp;%0D%0A%0D%0A%09%09
+.io.IOException;%0D%0A%0D%0Aimport javax.annotation.Resource;%0D%0Aimport javax.servlet.http.HttpServletRequest;%0D%0Aimport javax.servlet.http.HttpServletResponse;%0D%0A%0D%0Aimport org.springframework.stereotype.Controller;%0D%0Aimport org.springframework.web.bind.annotation.RequestMapping;%0D%0A%0D%0A%0D%0Aimport service.SellerManagementService;%0D%0A//dash%0D%0A@Controller()%0D%0Apublic class AjaxController %7B%0D%0A%09@Resource(name = %22sellerManagementServiceImp%22)%0D%0A%09private SellerManagementService sellerManagementServiceImp;%0D%0A%0D%0A%09@RequestMapping(%22/ajaxVerifycode%22)%0D%0A%09public void ajaxVerifyCode(HttpServletRequest req,%0D%0A%09%09%09HttpServletResponse resp, String verifyCode) throws IOException %7B%0D%0A%09%09System.out.println(verifyCode);%0D%0A%09%09if (verifyCode.equalsIgnoreCase((String) req.getSession().getAttribute(%0D%0A%09%09%09%09%22vCode%22))) %7B%0D%0A%09%09%09resp.getWriter().print(true);%0D%0A%09%09%7D else %7B%0D%0A%09%09%09resp.getWriter().print(false);%0D%0A%09%09%7D%0D%0A%0D%0A%09%7D%0D%0A%0D%0A
 %0D%0A%7D%0D

Update AjaxController.java