Skip to content

ss3414/datasource

Repository files navigation

datasource

持久层


ss_mybatis

①JDK6
②Spring/SpringMVC整合原生MyBatis
在Spring中配置SqlSessionFactoryBean/MapperScannerConfigurer(新版)
③mybatis包
Test1Mapper(系统学习)
Test2Mapper(自行总结)
④com包(原生MyBatis)
Mybatis Generator Maven插件(打包时会调用此插件)
PageHelper插件
Druid监控(需要配置web.xml+数据源配置慢查询)
Ehcache(Spring配置+ehcache.xml)

ss_mapper

①JDK6
②Spring/SpringMVC整合通用Mapper
在Spring中配置SqlSessionFactoryBean/MapperScannerConfigurer(TK版)/SqlSessionTemplate
PageHelper插件
MyMapper需要单独配置

springboot3_mybatisplus

①MBP
推荐写法:DataSourceConfig(model/mapper/XML)
传统写法:Application(mapper)+application.properties(XML)
②多数据源/事务

springboot3_jpa

事务(@EnableTransactionManagement+@Transactional)
关联(多对多:双向关联+关联插入/更新/查询)


springboot3_caffeine

Caffeine缓存
ConcurrentHashMap自定义缓存
@EnableCaching+@CacheConfig

sharding_mybatisplus

MBP+ShardingJDBC
单库水平分表

About

持久层

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published