package cn.xuxu.login.controller;
import javax.annotation.Resource;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import cn.xuxu.login.service.UserServiceImpl;
@Controller
@RequestMapping("/cute")
public class UserController {
@Resource
private UserServiceImpl service;
@RequestMapping("/login.do")
@ResponseBody
public String User(String name) {
String password = service.checkPassword(name);
return password;
}
}