2019-01-05 17:14

@JFinal 好的 我试试看。

2019-01-05 16:51

@JFinal 我用的是vscode redhat java扩展打开的 可能是IDE的问题了 ,我再试试看看。

2019-01-05 16:24

@JFinal 麻烦大佬看一下上面的报错 ,跑的就是首页的maven demo,因为没有数据库,我注释掉了configPlugin里面的数据源配置。

2019-01-05 16:23

感觉是路径的问题 undertow感觉不能正确识别src/main/webapp这个路径

2019-01-05 16:22

Starting Undertow Server http://0.0.0.0:80, https://0.0.0.0:443
java.lang.RuntimeException: File not found : C:\Users\xxb-ian\Desktop\jfinal_demo_for_maven/common/_layout.html
at com.jfinal.template.source.FileSource.getContent(FileSource.java:70)
at com.jfinal.template.EngineConfig.doAddSharedFunction(EngineConfig.java:93)
at com.jfinal.template.EngineConfig.addSharedFunction(EngineConfig.java:88)
at com.jfinal.template.Engine.addSharedFunction(Engine.java:245)
at com.demo.common.DemoConfig.configEngine(DemoConfig.java:68)
at com.jfinal.core.Config.configJFinal(Config.java:57)
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:33)

2018-12-20 17:01

老哥,你这个图片资源的api跪求啊