java - 使用spring jdbc查询多个表
问题描述
我需要查询 5 个表,根据响应形成一个 json 并发送给消费者。我不想使用 jdbcTemplate 逐个查询,而是想进行一次调用并获得所有响应。
{
"TableA":[
{
table rows as data
}
],
"TableB":[
{
table rows as data
}
],
"TableC":[
{
table rows as data
}
],
"TableD":[
{
table rows as data
}
],
"TableE":[
{
table rows as data
}
]
}
由于我是 spring jdbc 的新手,因此很难实现它。
解决方案
推荐阅读
- here-api - Here API RouteMatch - 在单个请求中处理超过 150 个航点
- vue.js - 如何动态生成表单元素并存储值(Vue 3)
- geocoding - HERE 批量地理编码器的 OpenApi 规范
- linq - 按会话 ID linq 分组以及如何将数据存储到可观察的集合中?
- c++ - GStreamer gst_buffer_make_writable 段错误和引用计数“hack”
- javascript - Salesforce LWC 项目符号点未在富文本组件中呈现
- java - bat文件在java中完成它的工作后如何关闭cmd?
- php - API 商店 Sylius “无法打开图像 /var/www/html/.../02315e376fda4f92615c4b0ba574.jpg”
- sql - 查询没有结果数据的目的地 pg tap postgres sql
- jquery - 使用 show_char 和 content.length 切换阅读更多/阅读更少