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

为啥配置了Schema 不生效 #363

Closed
MuJianxuan opened this issue Jan 25, 2022 · 2 comments
Closed

为啥配置了Schema 不生效 #363

MuJianxuan opened this issue Jan 25, 2022 · 2 comments
Labels

Comments

@MuJianxuan
Copy link

环境信息

  • 系统:
  • JDK:
  • 数据库:
  • APIJSON:

问题描述

image
下载的demo

还有一个我觉得奇怪的是
image
我本地可以连接的,但是 在项目运行却提示运行 访问权限问题,我不太确定是不是 sys.Test导致的。
image
image

错误信息

@TommyLemon
Copy link
Collaborator

TommyLemon commented Jan 27, 2022

应该是没有注册 DemoSQLConfig
https://github.com/APIJSON/APIJSON-Demo/blob/master/APIJSON-Java-Server/APIJSONDemo-HikariCP/src/main/java/apijson/demo/DemoApplication.java
image

或者没有初始化
image

导致 DemoSQLConfig 里面的代码都没执行,最后还是用默认是 sys

@TommyLemon
Copy link
Collaborator

TommyLemon commented Feb 7, 2022

相关问题(注意他在 URI 中配置了 schema,类似 jdbc:mysql://localhost:3306/sys
#364

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

No branches or pull requests

2 participants