![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
笔记
IT_A_bin
在校大学生一枚,热爱生活,享受学习。
展开
-
Java:针对list中存储对象的某一属性进行排序
1.首先写一个简单的测试bean类 public class SortBean { private String name; private int age; private int userId; public SortBean(String name, int age, int userId) { this.name = name; ...转载 2019-11-16 18:52:05 · 238 阅读 · 0 评论 -
编写C3P0连接池工具类
c3p0是开源免费的连接池!目前使用它的开源项目有:Spring、Hibernate等。使用第三方工具需要导入jar包,c3p0使用时还需要添加配置文件c3p0-config.xml 配置文件中为自己所操作的数据库的相应数据 1.导入jar包: 我使用的的0.9.2版本! (.jar文件放不上来,此处截图了,需要的私我) 2.配置文件 配置文件名称:c3p0-config.xml(固定) 配置文件...原创 2019-10-11 16:13:39 · 273 阅读 · 0 评论