-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
查询的json ,前端不传递 @schema时,是否可以默认 是application.yml 配置数据源的schema呢。 #364
Comments
DemoSQLConfig 重写 getSchema,判断 getDatasource 的值不为空就 return null,或者登录接口 defaults 里传 "@Schema":"" |
你的邮件我已经收到。谢谢
黄开雁
|
{ |
我的错。忘记在 java 代码中增加数据源。 |
环境信息
问题描述
查询的json中配置了 @Datasource ,但没有配置@Schema时。能不能 就默认是后台配置数据源时带的schema呢?
![5 HZXFMPJ`AZ4C_6FV1S}H0](https://user-images.githubusercontent.com/5146180/152766124-853505ea-997e-4ca3-907b-2779f7ccdcfa.png)
查询报错,如下图
![3~`)@R5YUY N(}UFF_1 H 8](https://user-images.githubusercontent.com/5146180/152766206-571ca959-4f8a-40a6-8d87-d31b6527818f.png)
如果在查询的json 中传递了 @Schema , 可以查询出正确的结果,如下图:
![R UP4MAJS`AQXMAD$R%S_BR](https://user-images.githubusercontent.com/5146180/152767229-bcd1789a-9712-4ecf-b581-84fe06619e19.png)
但我期望,查询json中但没有配置@Schema时,能不能 就默认是后台配置数据源时带的schema (base_nn4)呢?
The text was updated successfully, but these errors were encountered: