执行JFapplication时出现错误

java.lang.IllegalArgumentException: Properties file not found in classpath: application.properties

at com.jfinal.kit.Prop.<init>(Prop.java:67)

at com.jfinal.kit.PropKit.use(PropKit.java:79)

at com.jfinal.kit.PropKit.use(PropKit.java:53)

at com.myong.common.config.MainConfig.loadConfig(MainConfig.java:109)

at com.myong.common.config.MainConfig.configConstant(MainConfig.java:49)

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

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

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

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

at com.myong.common.config.MainConfig.main(MainConfig.java:213)

有朋友帮忙看看是怎么回事吗,我是纯小白

评论区

zzutligang

2020-02-25 20:27

入口需要读取application.properties这个配置文件,看看你那里有没有,没有就新建一个。

xiuj

2020-02-26 09:37

properties文件不存在吧。

热门反馈

扫码入社