-1

我正在逐步遵循本教程Golang + Revel web framework + Mongodb RESTFul generator for (revel_mgo),但是当我最终结束它并尝试运行它时,它会抛出这个错误

CRIT 16:11:18 revel_container.go:139:无法加载配置文件错误 =“C:\Users\Userx\go\src\RevelApp\conf\app.conf:无法解析第 126 行:mongo.database = RevelApp”

第 126 行是这样的:

[dev]

126 - mongo.database = mongo_db_test
127 - mongo.path = 127.0.0.1:27017
128 - mongo.maxPool = 20
4

1 回答 1

0

我解决了这样的问题:

 mongo.database = "mongo_db_test"
 mongo.path = "127.0.0.1:27017"
 mongo.maxPool = 20
于 2018-09-26T19:24:39.380 回答