Playmorphia配置找不到数据库 [英] Playmorphia configuration cannot find database

查看:103
本文介绍了Playmorphia配置找不到数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

0


I am implementing playmorphia module 2.7 from this link https://github.com/morellik/play-morphia

I am getting below error

com.typesafe.config.ConfigException$Missing: No configuration setting found for key 'local'
at com.typesafe.config.impl.SimpleConfig.findKeyOrNull(SimpleConfig.java:156)
at com.typesafe.config.impl.SimpleConfig.findOrNull(SimpleConfig.java:174)
at com.typesafe.config.impl.SimpleConfig.find(SimpleConfig.java:188)
at com.typesafe.config.impl.SimpleConfig.find(SimpleConfig.java:193)
at com.typesafe.config.impl.SimpleConfig.getString(SimpleConfig.java:250)
at controllers.mongoConfiguration.MyMongoClientFactory.getDBName(MyMongoClientFactory.java:27)
I have local mongodb instance where this local database is present but from java app it gives this error. Am i missing anything here? thanks.





我尝试过:



我尝试了Morphia和Jongo司机。两者都得到上面的错误信息。数据库方面我需要做什么?



What I have tried:

I tried Morphia and Jongo drivers. For both I get the above error message. Anything on database side I have to do?

推荐答案

缺失:在com.typesafe.config.impl上找不到关键'local'
的配置设置。 SimpleConfig.findKeyOrNull(SimpleConfig.java:156)
at com.typesafe.config.impl.SimpleConfig.findOrNull(SimpleConfig.java:174)
at com.typesafe.config.impl.SimpleConfig.find( SimpleConfig.java:188)
at com.typesafe.config.impl.SimpleConfig.find(SimpleConfig.java:193)
at com.typesafe.config.impl.SimpleConfig.getString(SimpleConfig.java: 250)
at controllers.mongoConfiguration.MyMongoClientFactory.getDBName(MyMongoClientFactory.java:27)
我有本地mongodb实例,其中存在这个本地数据库,但是从java app它给出了这个错误。我错过了什么吗?谢谢。
Missing: No configuration setting found for key 'local' at com.typesafe.config.impl.SimpleConfig.findKeyOrNull(SimpleConfig.java:156) at com.typesafe.config.impl.SimpleConfig.findOrNull(SimpleConfig.java:174) at com.typesafe.config.impl.SimpleConfig.find(SimpleConfig.java:188) at com.typesafe.config.impl.SimpleConfig.find(SimpleConfig.java:193) at com.typesafe.config.impl.SimpleConfig.getString(SimpleConfig.java:250) at controllers.mongoConfiguration.MyMongoClientFactory.getDBName(MyMongoClientFactory.java:27) I have local mongodb instance where this local database is present but from java app it gives this error. Am i missing anything here? thanks.





我尝试过:



我尝试了Morphia和Jongo司机。两者都得到上面的错误信息。数据库方面我需要做什么?



What I have tried:

I tried Morphia and Jongo drivers. For both I get the above error message. Anything on database side I have to do?


这篇关于Playmorphia配置找不到数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆