刚下载官网上的jfinal,运行File not found

Connected to the target VM, address: '127.0.0.1:63920', transport: 'socket'
Starting JFinal 4.9.08 -> http://0.0.0.0:80
Info: jfinal-undertow 2.5, undertow 2.0.34.Final, jvm 1.8.0_201
Disconnected from the target VM, address: '127.0.0.1:63920', transport: 'socket'
java.lang.RuntimeException: File not found : D:/jfinal/jfinal_demo_for_maven/common/_layout.html
	at com.jfinal.template.source.FileSource.getContent(FileSource.java:69)
	at com.jfinal.template.EngineConfig.doAddSharedFunction(EngineConfig.java:113)
	at com.jfinal.template.EngineConfig.addSharedFunction(EngineConfig.java:108)
	at com.jfinal.template.Engine.addSharedFunction(Engine.java:251)
	at com.demo.common.DemoConfig.configEngine(DemoConfig.java:71)
	at com.jfinal.core.Config.configJFinal(Config.java:60)
	at com.jfinal.core.JFinal.init(JFinal.java:61)
	at com.jfinal.core.JFinalFilter.init(JFinalFilter.java:64)
	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:287)
	at com.jfinal.server.undertow.UndertowServer.doStart(UndertowServer.java:265)
	at com.jfinal.server.undertow.UndertowServer.start(UndertowServer.java:158)
	at com.jfinal.server.undertow.UndertowServer.start(UndertowServer.java:83)
	at com.demo.common.DemoConfig.main(DemoConfig.java:31)

Process finished with exit code 1


评论区

jfinal爱好者22

2021-04-29 10:54

已解决,按照官网文档,https://jfinal.com/doc/1-5,第二项操作

热门反馈

扫码入社