我正在构建Rest登录服务但是当我尝试访问登录页面时,我得到了这个:
{
"_links" : {
"self" : {
"href" : "http://localhost:8080/profile"
}
}
}
RestController代码非常简单
@RestController
public class MainController {
private VoterAcces voterAccess;
@RequestMapping("/")
public String landing() {
return "Landing page por Voters System";
}
@RequestMapping(value = "/user", method = RequestMethod.POST)
@ResponseBody
public Object getVI(@RequestBody UserInfo userInfo) {
return this.voterAccess.getUser(userInfo.getEmail(), userInfo.getPassword());
}
我不确定为什么我得到那个而不是字符串“Landing page por Voters System”