Git Product home page Git Product logo

ccrental's Introduction

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, 估计别的数据库可能是没有的

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.