NutzCN Logo
问答 求解@At
发布于 3112天前 作者 qq_03623df8 2095 次浏览 复制 上一个帖子 下一个帖子
标签:

本人新手,参考入门文档写UserModule时运行tomcat报错,去掉@At就不报错
package net.wendal.nutzbook.module;

import net.wendal.nutzbook.bean.User;

import org.nutz.dao.Dao;
import org.nutz.ioc.loader.annotation.Inject;
import org.nutz.ioc.loader.annotation.IocBean;
import org.nutz.mvc.annotation.At;
import org.nutz.mvc.annotation.Fail;
import org.nutz.mvc.annotation.Ok;

@IocBean
@At("/user")
@Ok("json")
@Fail("http:500")
public class UserModule {
@Inject
protected Dao dao;

@At           //此处去掉就不报错
public int count(){
    return dao.count(User.class);
}

2016-6-15 16:42:58.593 ERROR [localhost-startStop-1] Error happend during start serivce!

15 回复

去掉@At不报错的原因是这个类就没有入口方法了,那么这个类就啥都没用了(作为URL入口的作用)

既然报错,就要贴报错信息, 一般是@IocBy写错.

六月 16, 2016 8:34:42 上午 org.apache.tomcat.util.digester.SetPropertiesRule begin
警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:jd' did not find a matching property.
六月 16, 2016 8:34:42 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server version: Apache Tomcat/7.0.67
六月 16, 2016 8:34:42 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server built: Dec 7 2015 13:07:11 UTC
六月 16, 2016 8:34:42 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server number: 7.0.67.0
六月 16, 2016 8:34:42 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Name: Windows 8.1
六月 16, 2016 8:34:42 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Version: 6.3
六月 16, 2016 8:34:42 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Architecture: x86
六月 16, 2016 8:34:42 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Java Home: F:\qishengV3.4_4897\java\jre1.7
六月 16, 2016 8:34:42 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Version: 1.7.0_60-b19
六月 16, 2016 8:34:42 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Vendor: Oracle Corporation
六月 16, 2016 8:34:42 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_BASE: F:\qishengV3.4_4897\studio\workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0
六月 16, 2016 8:34:42 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_HOME: F:\qishengV3.4_4897\apache-tomcat-7.0.67-x64
六月 16, 2016 8:34:42 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.base=F:\qishengV3.4_4897\studio\workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0
六月 16, 2016 8:34:42 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.home=F:\qishengV3.4_4897\apache-tomcat-7.0.67-x64
六月 16, 2016 8:34:42 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dwtp.deploy=F:\qishengV3.4_4897\studio\workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps
六月 16, 2016 8:34:42 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.endorsed.dirs=F:\qishengV3.4_4897\apache-tomcat-7.0.67-x64\endorsed
六月 16, 2016 8:34:42 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dfile.encoding=UTF-8
六月 16, 2016 8:34:42 上午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: F:\qishengV3.4_4897\java\jre1.7\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS;C:\WINDOWS\System32;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;E:\git\bin;.
六月 16, 2016 8:34:43 上午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-bio-8080"]
六月 16, 2016 8:34:43 上午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["ajp-bio-8009"]
六月 16, 2016 8:34:43 上午 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 818 ms
六月 16, 2016 8:34:43 上午 org.apache.catalina.core.StandardService startInternal
信息: Starting service Catalina
六月 16, 2016 8:34:43 上午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/7.0.67
六月 16, 2016 8:34:44 上午 org.apache.catalina.startup.TldConfig execute
信息: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
2016-6-16 8:34:44.335 WARN [localhost-startStop-1] !!You are using default SystemLog! Don't use it in Production environment!!
2016-6-16 8:34:44.351 INFO [localhost-startStop-1] Nutz is licensed under the Apache License, Version 2.0 .
Report bugs : https://github.com/nutzam/nutz/issues
2016-6-16 8:34:44.353 INFO [localhost-startStop-1] NutFilter[nutz] starting ...
2016-6-16 8:34:44.588 DEBUG [localhost-startStop-1] Locations for Scans:
[JarResourceLocation [jarPath=F:\qishengV3.4_4897\apache-tomcat-7.0.67-x64\bin\bootstrap.jar], JarResourceLocation [jarPath=F:\qishengV3.4_4897\apache-tomcat-7.0.67-x64\bin\tomcat-juli.jar], JarResourceLocation [jarPath=F:\qishengV3.4_4897\studio\workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\jd\WEB-INF\lib\nutz-1.r.54.r2.jar], FileSystemResourceLocation [root=F:\qishengV3.4_4897\studio], JarResourceLocation [jarPath=F:\qishengV3.4_4897\java\jre1.7\lib\tools.jar]]
2016-6-16 8:34:44.775 DEBUG [localhost-startStop-1] Locations for Scans:
[JarResourceLocation [jarPath=F:\qishengV3.4_4897\studio\workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\jd\WEB-INF\lib\nutz-integration-shiro-1.b.52.r2.jar], JarResourceLocation [jarPath=F:\qishengV3.4_4897\studio\workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\jd\WEB-INF\lib\mysql-connector-java-5.1.35.jar], JarResourceLocation [jarPath=F:\qishengV3.4_4897\studio\workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\jd\WEB-INF\lib\nutz-web-1.b.52.jar], JarResourceLocation [jarPath=F:\qishengV3.4_4897\apache-tomcat-7.0.67-x64\bin\bootstrap.jar], JarResourceLocation [jarPath=F:\qishengV3.4_4897\apache-tomcat-7.0.67-x64\bin\tomcat-juli.jar], JarResourceLocation [jarPath=F:\qishengV3.4_4897\studio\workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\jd\WEB-INF\lib\nutz-1.r.54.r2.jar], JarResourceLocation [jarPath=F:\qishengV3.4_4897\studio\workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\jd\WEB-INF\lib\nutz-integration-quartz-1.b.52.jar], FileSystemResourceLocation [root=F:\qishengV3.4_4897\studio], JarResourceLocation [jarPath=F:\qishengV3.4_4897\studio\workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\jd\WEB-INF\lib\druid-1.0.15.jar], JarResourceLocation [jarPath=F:\qishengV3.4_4897\java\jre1.7\lib\tools.jar], FileSystemResourceLocation [root=F:\qishengV3.4_4897\studio\workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\jd\WEB-INF\classes]]
2016-6-16 8:34:44.791 DEBUG [localhost-startStop-1] MainModule: <net.wendal.nutzbook.MainModule>
2016-6-16 8:34:44.806 DEBUG [localhost-startStop-1] Loading by class org.nutz.mvc.impl.NutLoading
2016-6-16 8:34:44.806 INFO [localhost-startStop-1] Nutz Version : 1.r.54.r2
2016-6-16 8:34:44.806 INFO [localhost-startStop-1] Nutz.Mvc[nutz] is initializing ...
2016-6-16 8:34:44.806 DEBUG [localhost-startStop-1] Web Container Information:
2016-6-16 8:34:44.806 DEBUG [localhost-startStop-1] - Default Charset : UTF-8
2016-6-16 8:34:44.806 DEBUG [localhost-startStop-1] - Current . path : F:\qishengV3.4_4897\studio.
2016-6-16 8:34:44.806 DEBUG [localhost-startStop-1] - Java Version : 1.7.0_60
2016-6-16 8:34:44.806 DEBUG [localhost-startStop-1] - File separator : \
2016-6-16 8:34:44.806 DEBUG [localhost-startStop-1] - Timezone : Asia/Shanghai
2016-6-16 8:34:44.806 DEBUG [localhost-startStop-1] - OS : Windows 8.1 x86
2016-6-16 8:34:44.806 DEBUG [localhost-startStop-1] - ServerInfo : Apache Tomcat/7.0.67
2016-6-16 8:34:44.806 DEBUG [localhost-startStop-1] - Servlet API : 3.0
2016-6-16 8:34:44.806 DEBUG [localhost-startStop-1] - ContextPath : /jd
2016-6-16 8:34:44.853 DEBUG [localhost-startStop-1] MainModule: <net.wendal.nutzbook.MainModule>
2016-6-16 8:34:44.853 DEBUG [localhost-startStop-1] >> app.root = F:/qishengV3.4_4897/studio/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/jd
2016-6-16 8:34:44.931 DEBUG [localhost-startStop-1] Using 94 castor for Castors
2016-6-16 8:34:44.947 DEBUG [localhost-startStop-1] @IocBy(type=org.nutz.mvc.ioc.provider.ComboIocProvider, args=["*js", "ioc/", "*anno", "net.wendal.nutzbook", "*tx"],init=[])
2016-6-16 8:34:44.963 DEBUG [localhost-startStop-1] Found 1 resource by src( ioc/ ) , regex( ^(.+[.])(js|json)$ )
2016-6-16 8:34:44.963 DEBUG [localhost-startStop-1] loading ioc js config from [dao.js]
2016-6-16 8:34:44.978 DEBUG [localhost-startStop-1] Loaded 2 bean define from path=[ioc/] --> [dataSource, dao]
2016-6-16 8:34:44.978 DEBUG [localhost-startStop-1] Found 4 resource by src( net/wendal/nutzbook/ ) , regex( ^.+[.]class$ )
2016-6-16 8:34:44.994 DEBUG [localhost-startStop-1] Found : class net.wendal.nutzbook.module.UserModule
2016-6-16 8:34:45.10 INFO [localhost-startStop-1] Found 1 classes in 1 base-packages!
beans = ["userModule"]
2016-6-16 8:34:45.10 DEBUG [localhost-startStop-1] Loaded 5 bean define from reader --
[txREPEATABLE_READ, txREAD_COMMITTED, txNONE, txSERIALIZABLE, txREAD_UNCOMMITTED]
2016-6-16 8:34:45.10 INFO [localhost-startStop-1] NutIoc init begin ...
2016-6-16 8:34:45.10 INFO [localhost-startStop-1] ... NutIoc init complete
2016-6-16 8:34:45.10 DEBUG [localhost-startStop-1] MainModule: <net.wendal.nutzbook.MainModule>
2016-6-16 8:34:45.10 INFO [localhost-startStop-1] Build URL mapping by org.nutz.mvc.impl.UrlMappingImpl ...
2016-6-16 8:34:45.10 DEBUG [localhost-startStop-1] @Views(DefaultViewMaker)
2016-6-16 8:34:45.25 DEBUG [localhost-startStop-1] @ChainBy(org.nutz.mvc.impl.NutActionChainMaker)
2016-6-16 8:34:45.41 DEBUG [localhost-startStop-1] module class location 'file:/F:/qishengV3.4_4897/studio/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/jd/WEB-INF/classes/'
2016-6-16 8:34:45.41 DEBUG [localhost-startStop-1] > scan 'net.wendal.nutzbook'
2016-6-16 8:34:45.41 DEBUG [localhost-startStop-1] Found 4 resource by src( net/wendal/nutzbook/ ) , regex( ^.+[.]class$ )
2016-6-16 8:34:45.41 DEBUG [localhost-startStop-1] >> add 'net.wendal.nutzbook.module.UserModule'
2016-6-16 8:34:45.41 DEBUG [localhost-startStop-1] Eval FAIL!! : public int net.wendal.nutzbook.module.UserModule.count()
2016-6-16 8:34:45.41 ERROR [localhost-startStop-1] Error happend during start serivce!
java.lang.RuntimeException: java.lang.NoClassDefFoundError: org/apache/shiro/aop/MethodInvocation
at org.nutz.lang.Lang.wrapThrow(Lang.java:148)
at org.nutz.mvc.impl.NutActionChainMaker.eval(NutActionChainMaker.java:53)
at org.nutz.mvc.impl.UrlMappingImpl.add(UrlMappingImpl.java:47)
at org.nutz.mvc.impl.NutLoading.evalUrlMapping(NutLoading.java:201)
at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:106)
at org.nutz.mvc.ActionHandler.(ActionHandler.java:19)
at org.nutz.mvc.NutFilter.init(NutFilter.java:78)
at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)
at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:105)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4917)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5609)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1574)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1564)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NoClassDefFoundError: org/apache/shiro/aop/MethodInvocation
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2532)
at java.lang.Class.getConstructor0(Class.java:2842)
at java.lang.Class.getConstructor(Class.java:1718)
at org.nutz.lang.born.Borns.evalWithoutArgs(Borns.java:228)
at org.nutz.lang.born.Borns.eval(Borns.java:56)
at org.nutz.lang.Mirror.born(Mirror.java:984)
at org.nutz.mvc.impl.NutActionChainMaker.getProcessorByName(NutActionChainMaker.java:77)
at org.nutz.mvc.impl.NutActionChainMaker.eval(NutActionChainMaker.java:36)
... 17 more
Caused by: java.lang.ClassNotFoundException: org.apache.shiro.aop.MethodInvocation
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1856)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1705)
... 26 more
2016-6-16 8:34:45.41 ERROR [localhost-startStop-1] try to depose ioc
2016-6-16 8:34:45.41 INFO [localhost-startStop-1] Closing class org.nutz.ioc.impl.NutIoc@24666065 startup date [Thu Jun 16 08:34:45 CST 2016]
2016-6-16 8:34:45.41 INFO [localhost-startStop-1] class org.nutz.ioc.impl.NutIoc@24666065 is deposed.
六月 16, 2016 8:34:45 上午 org.apache.catalina.core.StandardContext filterStart
严重: Exception starting filter nutz
org.nutz.mvc.LoadingException: java.lang.RuntimeException: java.lang.NoClassDefFoundError: org/apache/shiro/aop/MethodInvocation
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at org.nutz.lang.born.ConstructorBorning.born(ConstructorBorning.java:17)
at org.nutz.lang.born.BornContext.doBorn(BornContext.java:60)
at org.nutz.lang.Mirror.born(Mirror.java:988)
at org.nutz.lang.Lang.wrapThrow(Lang.java:164)
at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:133)
at org.nutz.mvc.ActionHandler.(ActionHandler.java:19)
at org.nutz.mvc.NutFilter.init(NutFilter.java:78)
at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)
at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:105)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4917)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5609)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1574)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1564)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.RuntimeException: java.lang.NoClassDefFoundError: org/apache/shiro/aop/MethodInvocation
at org.nutz.lang.Lang.wrapThrow(Lang.java:148)
at org.nutz.mvc.impl.NutActionChainMaker.eval(NutActionChainMaker.java:53)
at org.nutz.mvc.impl.UrlMappingImpl.add(UrlMappingImpl.java:47)
at org.nutz.mvc.impl.NutLoading.evalUrlMapping(NutLoading.java:201)
at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:106)
... 14 more
Caused by: java.lang.NoClassDefFoundError: org/apache/shiro/aop/MethodInvocation
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2532)
at java.lang.Class.getConstructor0(Class.java:2842)
at java.lang.Class.getConstructor(Class.java:1718)
at org.nutz.lang.born.Borns.evalWithoutArgs(Borns.java:228)
at org.nutz.lang.born.Borns.eval(Borns.java:56)
at org.nutz.lang.Mirror.born(Mirror.java:984)
at org.nutz.mvc.impl.NutActionChainMaker.getProcessorByName(NutActionChainMaker.java:77)
at org.nutz.mvc.impl.NutActionChainMaker.eval(NutActionChainMaker.java:36)
... 17 more
Caused by: java.lang.ClassNotFoundException: org.apache.shiro.aop.MethodInvocation
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1856)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1705)
... 26 more

六月 16, 2016 8:34:45 上午 org.apache.catalina.core.StandardContext startInternal
严重: One or more Filters failed to start. Full details will be found in the appropriate container log file
六月 16, 2016 8:34:45 上午 org.apache.catalina.core.StandardContext startInternal
严重: Context [/jd] startup failed due to previous errors
六月 16, 2016 8:34:45 上午 org.apache.catalina.loader.WebappClassLoaderBase checkThreadLocalMapForLeaks
严重: The web application [/jd] created a ThreadLocal with key of type [org.nutz.mvc.NutMvcContext$1] (value [org.nutz.mvc.NutMvcContext$1@ae5cdb]) and a value of type [org.nutz.lang.util.SimpleContext] (value [{
}]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
六月 16, 2016 8:34:45 上午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-bio-8080"]
六月 16, 2016 8:34:45 上午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-bio-8009"]
六月 16, 2016 8:34:45 上午 org.apache.catalina.startup.Catalina start
信息: Server startup in 1948 ms

缺少shiro依赖?

@enilu yes,加了shiro插件但没加shiro.jar

干啥这么早就加上shiro插件

来自炫酷的 NutzCN

@wendal 我不知道什么是shiro插件,但是我删掉了一个jar包就好了

新问题:查询用户时 报错
HTTP Status 404 - /jd/user/query

type Status report

message /jd/user/query

description The requested resource is not available.

Apache Tomcat/7.0.67

控制台 2016-6-16 16:8:39.327 DEBUG [http-bio-8080-exec-9] Search mapping for path=/user/query : NOT Action match
这又是什么原因呢

@qq_03623df8 写了入口方法了?写了@at了?方法名没写错?

来自炫酷的 NutzCN

@wendal 都是照着入门手册写的

@qq_03623df8 贴出来

来自炫酷的 NutzCN

@wendal 我再重新写一遍试试,看看是不是哪里写错了

@wendal 我想问一下@At("")和@At有什么区别吗

@qq_06a6a5be 你试试就知道了

@wendal 加了空字符串就是默认根路径访问,不加就没什么用,还有一个问题就是shiro判断授权的时候,如果判断了是ajax方法的时候不能直接跳转到登录页面吗,只能通过前台判断然后进行相应的跳转或者继承重写该方法吗

protected void whenUnauthenticated(ActionContext ac, UnauthenticatedException e) throws Exception {
		if (NutShiro.isAjax(ac.getRequest())) {
			ac.getResponse().addHeader("loginStatus", "accessDenied");
			NutShiro.rendAjaxResp(ac.getRequest(), ac.getResponse(), ajaxFail("user.require.login", "user.require.login"));
		} else {
			new ServerRedirectView(loginUri()).render(ac.getRequest(), ac.getResponse(), null);
		}
	}
添加回复
请先登陆
回到顶部