随笔分类 - mybatis
mybatis相关教程
摘要:使用springboot整合mybatis,使用通用mapper和mapper分页插件, 1.数据库的tingint对应java是boolean类型。 导包<!--分页插件 -->,mybatis的springboot新建的时候选择了。 <dependency> <groupId>com.githu
阅读全文
摘要:Mybatis jdbc太繁琐,Hibernate代码简介,但是性能不好,Mybatis中庸,是一个开源的持久层框架 1.开发步骤: #1 导包(mybatis jdbc驱动) #2 添加配置文件(mybatis.xml) <!DOCTYPE configuration PUBLIC "-//myb
阅读全文
摘要:Spring JDBC spring jdbc是spring对jdbc的封装,使用springjdbc访问数据库,比如不用考虑获取连接和关闭连接,同时springjdbc对DAO类中数据库出现的异常进行了封装成DataAccessException(继承自RuntimeException),可以交由
阅读全文
摘要:使用springboot整合mybatis,使用通用mapper和mapper分页插件, 1.数据库的tingint对应java是boolean类型。 导包<!--分页插件 -->,mybatis的springboot新建的时候选择了。 <dependency> <groupId>com.githu
阅读全文

浙公网安备 33010602011771号