自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(3)
  • 资源 (1)
  • 收藏
  • 关注

原创 Java最简单的死锁样例

废话不多说,talk is cheap show me the code: public static void main(String[] args) { String s1 = "1"; String s2 = "2"; new Thread(()->{ synchronized (s1){ System.out.println(s1); try { Thread.sleep(.

2021-05-18 17:33:50 106

原创 springboot配置多数据源,根据mapper接口所在的包位置不同动态访问不同的数据源

假如我们要访问两个数据源,那么我们要添加两个数据源的配置类:XXXDataSourceConfig,如果是三个,就创建三个配置类。。。 @Configuration @MapperScan(basePackages = ADataSourceConfig.PACKAGE, sqlSessionFactoryRef = "productSqlSessionFactory") public class ADataSourceConfig { static final String PACKAGE

2021-05-08 15:32:40 2528

原创 mybatis 时间范围查询

mybatis框架支持直接用>=或<=查询日期范围,如: <if test="startTime != null and startTime != ''"> and timer.create_time &gt;= #{startTime} <if test="endTime != null and endTime != ''"> and timer.create_time &lt;= #{endTime} </if>...

2021-05-08 14:46:54 11309

深入理解Java虚拟机:JVM高级特性与最佳实践_周志明.高清扫描版.pdf

超清晰,带目录索引,能点击目录直接跳转到该页面,字体非常清晰,手机电脑观看均可。

2018-03-14

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除