atjiu / pybbs

更实用的Java开发的社区(论坛),Better use of Java development community (forum)
GNU Affero General Public License v3.0
1.87k stars 711 forks source link

根据文档,启动报错 #102

Closed ATAlanTang closed 4 years ago

ATAlanTang commented 4 years ago

配置好数据源,从co.yiiu.pybbs.PybbsApplication启动,提示 Description:

Field configuration in co.yiiu.pybbs.config.FreemarkerConfig required a bean of type 'freemarker.template.Configuration' that could not be found.

The injection point has the following annotations:

Action:

Consider defining a bean of type 'freemarker.template.Configuration' in your configuration. 请问这个该怎么办?

atjiu commented 4 years ago

你项目下载后,maven编译完成了吗?感觉像是maven没有编译完,依赖没下完

有配置maven环境的话,在终端里运行一下 mvn clean compile 如果提示成功了,再启动项目试试

ATAlanTang commented 4 years ago

谢谢!我重拉取一次,就可以了。