resultset 查询时返回多个相同值
2024-09-26 14:13:27
背景
做个简单的接口开发,拿到的平台比较不理想,好久没重新搭建一个了,正好练练手。用了基础的servlet,maven,logback(log4j不支持格式化,比较烦人),fastjson,druid,dbutils,httpclient,freemarker。
基本按照mvc模式分层,但是少了个代码生成器,用mybatis和hibernate都有自带的。但是我用dbutils没有,所以就用freemarker自己写了。基本都很顺利,有个搞笑问题,DatabaseMetaData返回主键总是多个,开始为了赶,就去了重,后来想到应该是数据库有好几个用户都有这个表的原因,倒腾了半天,那个传用户的参数不行,后来想到用户名是否该大写。真是厉害了,解决了。databaseMetaData.getPrimaryKeys(null, USER.toUpperCase(), tableName);
同时温习了
DatabaseMetaData,ResultSet,ResultSetMetaData这三个类型。
最新文章
- Burp Suite 使用教程(上传突破利器)
- one recursive approach for 3, hdu 1016 (with an improved version) , permutations, N-Queens puzzle 分类: hdoj 2015-07-19 16:49 86人阅读 评论(0) 收藏
- delphi 10.1 berlin最新的开发框架:咏南中间件+咏南开发框架,购买后提供全部的源码
- Android 异步加载图片,使用LruCache和SD卡或手机缓存,效果非常的流畅
- vim 多行同时输入,且输入数值递增
- C# CodeHelper
- Vijos 1010 清帝之惑之乾隆
- Cain工具ARP欺骗攻击
- Django 表单校验 表单字段设置 自定义表单校验规则
- 安卓笔记-可以滚动的TextView
- Android MVP
- Xcode 断点无用,也不打印输出
- nginx 代理 https 后,应用变成 http
- 026_关于shell中的特殊变量$0 $n $* $@ $! $?
- [7] Windows内核情景分析---线程同步
- Spring-data-jpa 常用的时间注解
- 设计模式原则(4)--Interface Segregation Principle(ISP)--接口隔离原则
- http-equiv=";Refresh"; 实现定时刷新页面
- sql经常出现死锁解决办法
- P1564 膜拜
热门文章
- RuntimeError: 		An attempt has been made to start a new process before the 		current process has finished its bootstrapping phase. 		This probably means that you are not using fork to start your 		c
- Powershell同时使用可选强制参数
- 一.从零认识XAML
- 删除 node_modules文件夹cmd指令
- 【经典数据结构】B树与B+树
- GitHub最基本使用总结
- 洛谷P3806 点分治
- 通过crontab调度java -jar任务提示";nohup: failed to run command `java': No such file or directory";
- 字符串str的使用方法
- 使用catboost解决ML中高维度不平衡数据集挑战的解决方案