@At("/test")
@Ok("beetl:/public/wx/parent/login.html")
public Object test(HttpServletRequest req, HttpSession session){
log.debug("session::::"+ Strings.sNull(session.getAttribute("openId")));
// WxApi2 wxApi2 = wxConfigService.getWxApi2("5f8afb8297df41b28772daf424a42f3b");
//NutMap jsConfig = wxApi2.genJsSDKConfig( "http://" + Globals.AppDomain +Globals.AppBase+"/public/wx/cms/test", "test");
return Result.success("wahhhahhaha");
}
@At("/loginByAccount")
@Ok("json")
@POST
public Object loginByAccount(@Param("username") String username,@Param("password") String password。。。
点击配置的菜单 进入登录页 输入用户名密码 点确定
$(function(){
$('#showTooltips').on('click', function(){
var data = $('form').serialize();
debugger
$.ajax({
url: "${base}/public/wx/cms/loginByAccount",
data: data,
type:"POST",
success: function (data, textStatus, jqXHR) {
weui.alert(data);
},
error: function () {
}
});
});
});
此方法一直报 jquery.min.js:4 POST http://.../wkweb/public/wx/cms/loginByAccount 404 (Not Found)
访问自己的服务器资源,为什么一直是
[POST] path=/public/wx/cms/loginByAccount : NOT Action match
帮忙看一下呀,谢谢