jpress 如何用 intell 做二次开发?有没有相关的文档?

500 error, bug can not find current template to render

我在使用intell 导入jpress项目时 配置好数据库,启动之后会有这样的错误


十月 25, 2018 9:00:32 下午 io.jboot.aop.interceptor.cache.Kits warn

警告:  Maven or IDE config is error. see http://www.jfinal.com/doc/3-3 

十月 25, 2018 9:00:32 下午 io.jboot.server.listener.JbootAppListenerManager error

严重: java.lang.NullPointerException

java.lang.NullPointerException

at io.jpress.core.template.TemplateManager.getTemplateById(TemplateManager.java:86)

at io.jpress.core.template.TemplateManager.initDefaultTemplate(TemplateManager.java:113)

at io.jpress.core.template.TemplateManager.setCurrentTemplate(TemplateManager.java:98)

at io.jpress.core.template.TemplateManager.init(TemplateManager.java:45)

at io.jpress.web.OptionInitializer.init(OptionInitializer.java:68)

at io.jpress.web.WebInitializer.onJFinalStarted(WebInitializer.java:48)

at io.jboot.server.listener.JbootAppListenerManager.onJFinalStarted(JbootAppListenerManager.java:158)

at io.jboot.web.JbootAppConfig.afterJFinalStart(JbootAppConfig.java:234)

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

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 io.jboot.server.undertow.UnderTowServer.initUndertowServer(UnderTowServer.java:104)

at io.jboot.server.undertow.UnderTowServer.start(UnderTowServer.java:192)

at io.jboot.Jboot.startServer(Jboot.java:168)

at io.jboot.Jboot.start(Jboot.java:149)

at io.jboot.Jboot.run(Jboot.java:92)

at io.jpress.Starter.main(Starter.java:28)


评论区

haicuan139

2018-10-25 21:13

已经解决了,需要在intell 中 mvn install 下

热门反馈

扫码入社