RT,一个很普通的jsp,找到module后就没了,也不报错
jsp
<body>
<shiro:guest>
<form id="login_form" method="post">
<input id="user_name" name="user_name"><br>
<input id="user_password" name="user_password"><br>
<a href="#" id="submit_button"></a><a href="#" id="reset_button"></a>
</form>
</shiro:guest>
<shiro:user>
<shiro:principal/><a href="${base}/user/logout" id="logout_button"></a>
</shiro:user>
<script>
$('#login_form').form({
url: "${base}/user/login",
dataType: "json",
onSubmit: function () {
return $('#login_form').form('validate');
},
success: function () {
location.reload()
}
});
$('#user_name').textbox({
width: 250,
prompt: "请输入用户名",
label: "${msg['user.user_name']}",
validateOnCreate: false,
validateOnBlur: true,
required: true,
validType: {length: [2, 10]}
});
$('#user_password').passwordbox({
width: 250,
prompt: "请输入密码",
label: "${msg['user.user_password']}",
validateOnCreate: false,
validateOnBlur: true,
required: true,
validType: {length: [4, 10]}
});
$('#submit_button').linkbutton({
text: "登录",
onClick: function () {
$('#login_form').form('submit')
}
});
$('#reset_button').linkbutton({
text: "重置",
onClick: function () {
$('#login_form').form('reset')
}
});
$('#logout_button').linkbutton({
text: "登出"
})
</script>
model
@At
@POST
@Ok("json")
public JsonResp<Void> login(@Param("user_name") String name, @Param("user_password") String password, HttpSession session) {
String userName = userService.login(name, password);
日志
2017-02-22 21:04:48,397 org.nutz.mvc.impl.UrlMappingImpl.get(UrlMappingImpl.java:101) DEBUG - Found mapping for [POST] path=/user/login : UserModule.login(UserModule.java:35)
2017-02-22 21:04:48,398 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'userModule'<class petMall.module.UserModule>
2017-02-22 21:04:48,400 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:177) DEBUG - >> Load definition name=userModule
2017-02-22 21:04:48,400 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(userModule) in AnnotationIocLoader(packages=[petMall])
2017-02-22 21:04:48,400 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:209) DEBUG - >> Make...'userModule'<class petMall.module.UserModule>
2017-02-22 21:04:48,401 org.nutz.ioc.aop.impl.DefaultMirrorFactory.getMirror(DefaultMirrorFactory.java:70) DEBUG - Load class petMall.module.UserModule without AOP
2017-02-22 21:04:48,401 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:64) DEBUG - Save object 'userModule' to [app]
2017-02-22 21:04:48,405 org.nutz.ioc.val.ReferTypeValue.get(ReferTypeValue.java:64) DEBUG - name=userService not found, search for type=petMall.service.UserService
2017-02-22 21:04:48,405 org.nutz.ioc.loader.map.MapLoader.load(MapLoader.java:67) DEBUG - Loading define for name=conf
2017-02-22 21:04:48,405 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(conf) in JsonLoader(paths=[ioc/])
2017-02-22 21:04:48,405 org.nutz.ioc.loader.map.MapLoader.load(MapLoader.java:67) DEBUG - Loading define for name=dao
2017-02-22 21:04:48,406 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(dao) in JsonLoader(paths=[ioc/])
2017-02-22 21:04:48,406 org.nutz.ioc.loader.map.MapLoader.load(MapLoader.java:67) DEBUG - Loading define for name=dataSource
2017-02-22 21:04:48,406 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(dataSource) in JsonLoader(paths=[ioc/])
2017-02-22 21:04:48,406 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(userServiceImpl) in AnnotationIocLoader(packages=[petMall])
2017-02-22 21:04:48,406 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'userServiceImpl'<interface petMall.service.UserService>
2017-02-22 21:04:48,406 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:177) DEBUG - >> Load definition name=userServiceImpl
2017-02-22 21:04:48,406 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(userServiceImpl) in AnnotationIocLoader(packages=[petMall])
2017-02-22 21:04:48,407 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:209) DEBUG - >> Make...'userServiceImpl'<interface petMall.service.UserService>
2017-02-22 21:04:48,407 org.nutz.ioc.aop.impl.DefaultMirrorFactory.getMirror(DefaultMirrorFactory.java:70) DEBUG - Load class petMall.service.impl.UserServiceImpl without AOP
2017-02-22 21:04:48,407 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:64) DEBUG - Save object 'userServiceImpl' to [app]
2017-02-22 21:04:48,408 org.nutz.service.EntityService.<init>(EntityService.java:41) DEBUG - Get TypeParams for self : petMall.bean.User
2017-02-22 21:04:48,408 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'dao'<>
也不报错,断点在第一行,但根本没经来