1 Star 2 Fork 0

starplatinum111 / ccrental

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

zucc cc租车 数据库短学期

jdbc 管理系统, 租车下单

参考

https://gitee.com/SevDaisy/TakeawayGo

个人觉得比较有意义的一个东西,JdbcUtil,利用反射,不用写sql

运行

project structure

选择 sdk,编译出来的目录

导入 lib

(1条消息) IDEA导入jar包_hwt1070359898的博客-CSDN博客_idea导入jar包 https://blog.csdn.net/hwt1070359898/article/details/90517291

文档:project structure.note 链接:http://note.youdao.com/noteshare?id=533e78157551489144c0e68c3d0788d8&sub=E3B92DA453844C6C9FC9FB7180A4D3E2

导入 sql,在sql目录

配置连接池 cn.edu.zucc.personplan.util.DBPool

dataSource = new ComboPooledDataSource();
dataSource.setUser("root");
dataSource.setPassword("123");

dataSource
        .setJdbcUrl("jdbc:mysql://127.0.0.1:3307/cc?autoReconnect=true&useUnicode=true" +
                "&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT");
dataSource.setDriverClass("com.mysql.jdbc.Driver");

2021年9月15日12:21:18 更新 jdbcUtil,增加了 批量插入和批量更新 批量更新用了mysql的replace into, 估计别的数据库可能是没有的

MIT License Copyright (c) 2022 starplatinum111 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

zucc cc租车 数据库短学期,泛型,awt,java 桌面,jdbc,jdbctUtil,反射 展开 收起
Java 等 2 种语言
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/starplatinum111/ccrental.git
git@gitee.com:starplatinum111/ccrental.git
starplatinum111
ccrental
ccrental
master

搜索帮助