无法解析第 126 行:mongo.database = mongo_db_test
could not parse line #126: mongo.database = mongo_db_test
我正在逐步按照本教程 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: could not parse line #126: mongo.database = RevelApp"
第 126 行是这样的:
[dev]
126 - mongo.database = mongo_db_test
127 - mongo.path = 127.0.0.1:27017
128 - mongo.maxPool = 20
我解决了只是把双引号这样:
mongo.database = "mongo_db_test"
mongo.path = "127.0.0.1:27017"
mongo.maxPool = 20
我正在逐步按照本教程 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: could not parse line #126: mongo.database = RevelApp"
第 126 行是这样的:
[dev]
126 - mongo.database = mongo_db_test
127 - mongo.path = 127.0.0.1:27017
128 - mongo.maxPool = 20
我解决了只是把双引号这样:
mongo.database = "mongo_db_test"
mongo.path = "127.0.0.1:27017"
mongo.maxPool = 20