以下代码执行时,test传参为true的时候仍然走"->:/backend/home", 为什么没有走">>:/backend",是代码写错了么?
@At
@Ok("->:/backend/home")
public String test(@Param("test")boolean test){
if(test){
return ">>:/backend";
}
return null;
}
日志信息:
2016-10-20 10:37:08,954 org.nutz.mvc.impl.UrlMappingImpl.get(UrlMappingImpl.java:92) DEBUG - Found mapping for [GET] path=/backend/client/test : UserController.test(UserController.java:22)
2016-10-20 10:37:08,954 net.sf.ehcache.store.disk.Segment.faultInternal(Segment.java:764) DEBUG - fault removed 0 from heap
2016-10-20 10:37:08,954 net.sf.ehcache.store.disk.Segment.faultInternal(Segment.java:776) DEBUG - fault added 0 on disk
2016-10-20 10:37:08,955 org.nutz.mvc.impl.UrlMappingImpl.get(UrlMappingImpl.java:92) DEBUG - Found mapping for [GET] path=/backend/home : LoginController.home(LoginController.java:127)
2016-10-20 10:37:08,956 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'loginController'<class net.jingwang.modules.controllers.backend.LoginController>
2016-10-20 10:37:08,990 org.nutz.dao.impl.sql.run.NutDaoExecutor._runSelect(NutDaoExecutor.java:192) DEBUG - SELECT * FROM announcement ORDER BY create_time DESC LIMIT 0, 20
2016-10-20 10:37:09,025 org.nutz.dao.impl.sql.run.NutDaoExecutor._runSelect(NutDaoExecutor.java:192) DEBUG - SELECT COUNT(*) FROM announcement