上一页 1 ··· 30 31 32 33 34 35 36 37 38 ··· 108 下一页
摘要: <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <! 阅读全文
posted @ 2020-07-16 11:33 陈彦斌 阅读(246) 评论(0) 推荐(0)
摘要: application.properties server.port=8081 # 数据库相关配置 spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver spring.datasource.url=jdbc:mysql://loca 阅读全文
posted @ 2020-07-16 11:31 陈彦斌 阅读(618) 评论(0) 推荐(0)
摘要: 快速创建SpringBoot+Spring+Mybatis项目 https://start.spring.io 删除pom中mysql依赖的runtime pom.xml中添加druid依赖 <dependency> <groupId>com.alibaba</groupId> <artifactI 阅读全文
posted @ 2020-07-16 00:02 陈彦斌 阅读(496) 评论(0) 推荐(0)
摘要: spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver spring.datasource.url=jdbc:mysql://localhost:3306/cybclass?useUnicode=true&characterEncod 阅读全文
posted @ 2020-07-15 23:16 陈彦斌 阅读(409) 评论(0) 推荐(0)
摘要: 事务管理 事务:多个操作,要么同时成功,要么失败后一起回滚 具备ACID四种特性 Atomic(原子性) Consistency(一致性) lsolation(隔离性) Durablility(持久性) 常见的Spring事务管理方式有那些 编程式事务 代码调用beginTransaction()、 阅读全文
posted @ 2020-07-15 22:49 陈彦斌 阅读(244) 评论(0) 推荐(0)
上一页 1 ··· 30 31 32 33 34 35 36 37 38 ··· 108 下一页