使用最新的jfinal-undertow 2.0 项目能跑起来,但是web端访问不了 而且后台有请求进入 感觉是拦截了,可是浏览器单独访问接口却可以!配置文件也是按照教程来的
16:47:54.859 [XNIO-1 I/O-2] DEBUG io.undertow.request - Matched default handler path /admin/recruit/queryList 16:47:54.866 [XNIO-1 task-2] DEBUG io.undertow.request.security - Attempting to authenticate /admin/recruit/queryList, authentication required: false 16:47:54.867 [XNIO-1 task-2] DEBUG io.undertow.request.security - Authentication outcome was NOT_ATTEMPTED with method io.undertow.security.impl.CachedAuthenticatedSessionMechanism@9004a1 for /admin/recruit/queryList 16:47:54.867 [XNIO-1 task-2] DEBUG io.undertow.request.security - Authentication result was ATTEMPTED for /admin/recruit/queryList 16:47:54.875 [XNIO-1 I/O-1] DEBUG io.undertow.request - Matched default handler path /admin/recruit/queryDeartmentName 16:47:54.881 [XNIO-1 task-3] DEBUG io.undertow.request.security - Attempting to authenticate /admin/recruit/queryDeartmentName, authentication required: false 16:47:54.881 [XNIO-1 task-3] DEBUG io.undertow.request.security - Authentication outcome was NOT_ATTEMPTED with method io.undertow.security.impl.CachedAuthenticatedSessionMechanism@9004a1 for /admin/recruit/queryDeartmentName 16:47:54.881 [XNIO-1 task-3] DEBUG io.undertow.request.security - Authentication result was ATTEMPTED for /admin/recruit/queryDeartmentName JFinal-4.8 action report -------- 2020-06-01 16:47:54 -------------------------- Url : OPTIONS /admin/recruit/queryDeartmentName Controller : com.diasit.information.admin.controllers.personnelmanagement.recruit.RecruitController.(RecruitController.java:1) Method : queryDeartmentName Interceptor : com.diasit.base.interceptor.ExceptionInterceptor.(ExceptionInterceptor.java:1) com.diasit.information.admin.routers.AdminInterceptor.(AdminInterceptor.java:1) -------------------------------------------------------------------------------- JFinal-4.8 action report -------- 2020-06-01 16:47:54 -------------------------- Url : OPTIONS /admin/recruit/queryList Controller : com.diasit.information.admin.controllers.personnelmanagement.recruit.RecruitController.(RecruitController.java:1) Method : queryList Interceptor : com.diasit.base.interceptor.ExceptionInterceptor.(ExceptionInterceptor.java:1) com.diasit.information.admin.routers.AdminInterceptor.(AdminInterceptor.java:1) Parameter : pageNumber=1 pageSize=11 -------------------------------------------------------------------------------- 16:48:55.025 [XNIO-1 I/O-2] DEBUG io.undertow.request - Timing out idle connection from /127.0.0.1:64712 16:48:55.025 [XNIO-1 I/O-1] DEBUG io.undertow.request - Timing out idle connection from /127.0.0.1:64713
#静态资源 undertow.resourcePath = src/main/webapp, classpath:webapp # 是否开启 ssl undertow.ssl.enable=false #热加载 undertow.devMode=true #端口号 undertow.port=8201
加0.0.0.0 也没用