event 事件使用undertow 启动

event 事件使用undertow 启动 

java.lang.ClassCastException: net.dreamlu.event.EventPlugin cannot be cast to com.jfinal.plugin.IPlugin

at com.jfinal.core.Config.startPlugins(Config.java:118)

at com.jfinal.core.Config.configPluginWithOrder(Config.java:71)

at com.jfinal.core.Config.configJFinal(Config.java:56)

at com.jfinal.core.JFinal.init(JFinal.java:61)

at com.jfinal.core.JFinalFilter.init(JFinalFilter.java:62)

at io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:111)

at io.undertow.servlet.core.ManagedFilter.createFilter(ManagedFilter.java:80)

at io.undertow.servlet.core.DeploymentManagerImpl$2.call(DeploymentManagerImpl.java:589)

at io.undertow.servlet.core.DeploymentManagerImpl$2.call(DeploymentManagerImpl.java:554)

at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:42)

at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)

at io.undertow.servlet.core.DeploymentManagerImpl.start(DeploymentManagerImpl.java:596)

at com.jfinal.server.undertow.UndertowServer.configHttp(UndertowServer.java:276)

at com.jfinal.server.undertow.UndertowServer.doStart(UndertowServer.java:254)

at com.jfinal.server.undertow.UndertowServer.start(UndertowServer.java:151)

at com.jfinal.server.undertow.UndertowServer.start(UndertowServer.java:80)

at com.demo.common.DemoConfig.main(DemoConfig.java:34)



评论区

JFinal

2018-12-28 17:57

添加配置:
undertow.hotSwapClassPrefix=net.dreamlu.

shixiniloveyou

2018-12-28 18:02

@JFinal 嗯嗯,是这个问题

tang_mu_sheng

2018-12-28 18:34

@JFinal 大哥,token验证的问题如下:后台生成一个token传给前端,前段提交表单给后端方法拦截验证token,正常没问题。但是如果表单提交失败(中间有字段长度等问题),后台的token就会被第一次的清除掉,前段在提交就会报token验证失败,你怎么解决的,,,,,,我需要提交失败的时候在给前段一个新的token吗

杜福忠

2018-12-29 23:19

@tang_mu_sheng 为啥不先校验表单了, 校验通过了再 清除 token 不就可以了吗

热门反馈

扫码入社