无法映射。actionKey被使用。

image.png路由是这么配置的。这个是公众号项目。

然后启动项目报:

Exception: The action "com.shangzuo.oral.reg.doctor.DoctorRegController.success()" can not be mapped, actionKey "/doctorReg/success" is already in use.

java.lang.RuntimeException: The action "com.shangzuo.oral.reg.doctor.DoctorRegController.success()" can not be mapped, actionKey "/doctorReg/success" is already in use.

at com.jfinal.core.ActionMapping.buildActionMapping(ActionMapping.java:104)

at com.jfinal.core.JFinal.initActionMapping(JFinal.java:103)

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

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

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:591)

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

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:598)

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

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

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

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

at com.shangzuo.oral.common.OralConfig.main(OralConfig.java:53)


评论区

邢鹏

2020-01-21 14:21

求解决

要输就输给追求

2020-01-21 15:48

actionkey重复了

热门反馈

扫码入社