2016-10-20 16:06

还是在我这个Controller中调用?

2016-10-20 16:04

ApiConfigKit.setThreadLocalApiConfig(apiConfig) 这个是在YourJFinalConfig 中配置吗?

2016-10-20 16:04

[ERROR]-[Thread: ajp-10252-1]-[com.jfinal.core.ActionHandler.handle()]: /admin/update/auditBlog/bced8eaaa66d49f0a6b3b60e2f8a8c80
java.lang.IllegalStateException: 需要事先使用 ApiConfigKit.setThreadLocalApiConfig(apiConfig) 将 ApiConfig对象存入,才可以调用 ApiConfigKit.getApiConfig() 方法
at com.jfinal.weixin.sdk.api.ApiConfigKit.getApiConfig(ApiConfigKit.java:39)
at com.jfinal.weixin.sdk.api.AccessTokenApi.getAccessToken(AccessTokenApi.java:41)
at com.jfinal.weixin.sdk.api.TemplateMsgApi.send(TemplateMsgApi.java:25)
at model.Blog.auditing(Blog.java:46)
at controller.AdminUpdateController.auditBlog(AdminUpdateController.java:34)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.jfinal.aop.Invocation.invoke(Invocation.java:73)
at config.AdminInter.intercept(AdminInter.java:17)
at com.jfinal.aop.Invocation.invoke(Invocation.java:67)
at com.jfinal.core.ActionHandler.handle(ActionHandler.java:74)
at Xss.XssHandler.handle(XssHandler.java:19)
at config.GlobalHandler.handle(GlobalHandler.java:51)
at com.jfinal.core.JFinalFilter.doFilter(JFinalFilter.java:72)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.ajp.AjpAprProcessor.process(AjpAprProcessor.java:450)
at org.apache.coyote.ajp.AjpAprProtocol$AjpConnectionHandler.process(AjpAprProtocol.java:403)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1774)
at java.lang.Thread.run(Thread.java:662)

2016-10-12 19:35

作为一个资深前端,我表示看了你的页面我想帮你改改……

2016-10-12 19:04

原来就差 isHandled[0] = true; 这句啊~ 我把return;删了 , 改成了isHandled[0] = true; 就好了……真是太神奇了,原来这样来禁止jetty接手的啊。

2016-10-12 15:44

怎么才可以不转手了呀?我试了在请求转发后面加个 return; 但是没效果……

2016-10-11 21:39

期待期待~~~~

2016-10-11 21:32

你的回答 完美的解决了我的问题 真牛~

2016-10-11 21:19

@JFinal Whitelist.relaxed().removeProtocols("a", "href", "ftp", "http", "https", "mailto") …… 没有removeProtocols()这个方法啊

2016-10-11 21:08

@jFinal Jsoup.clean(content, Whitelist.relaxed())这个会过滤掉img的src,这个怎么办?

2016-10-11 21:05

而且我配置的是Jsoup.clean(content, Whitelist.relaxed())的过滤方式,但是img的src都过滤没了……