Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nacos的配置加载不到配置 #2

Open
jianyun opened this issue Feb 4, 2021 · 5 comments
Open

nacos的配置加载不到配置 #2

jianyun opened this issue Feb 4, 2021 · 5 comments

Comments

@jianyun
Copy link

jianyun commented Feb 4, 2021

quarkus-hibernate-orm-panache使用nacos的配置加载不到配置

@jianyun
Copy link
Author

jianyun commented Feb 4, 2021

Caused by: io.quarkus.runtime.configuration.ConfigurationException: Model classes are defined for the default persistence unit but no default datasource found: the default EntityManagerFactory will not be created.

@klboke
Copy link
Contributor

klboke commented Feb 4, 2021

其他组件可以读到配置么?

@jianyun
Copy link
Author

jianyun commented Feb 4, 2021

现在启动这个检查就失败了

@klboke
Copy link
Contributor

klboke commented Feb 4, 2021

额,需要 debug 了

@jianyun
Copy link
Author

jianyun commented Feb 4, 2021

quarkus.datasource.db-kind=mysql properties中必须加这个配置,其他的配置才能走nacos获取。不然启动直接报错了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants