上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 71 下一页
原文:https://cloud.tencent.com/developer/article/1562471 作者:日拱一兵 前言 有时候我们需要在应用启动时执行一些代码片段,这些片段可能是仅仅是为了记录 log,也可能是在启动时检查与安装证书 ,诸如上述业务要求我们可能会经常碰到 Spring B Read More
posted @ 2021-07-13 02:20 奋斗终生 Views(7491) Comments(0) Diggs(2) Edit
原文:https://zhuanlan.zhihu.com/p/352967633 作者:神马翔 Spring 应用有时会在应用启动后做一些初始化的操作,比如从数据库中拉取一些数据缓存起来,比如读取一些配置变量。如何在容器启动后来执行一个任务呢?本文针对这个问题,探讨一下几个方面的内容。 Sprin Read More
posted @ 2021-07-13 01:59 奋斗终生 Views(1753) Comments(0) Diggs(0) Edit
add by zhj: TCP的Keepalive使用的是SO_KEEPALIVE参数,它对应三个参数,通过setsocketopt()可以配置socket的这个属性,客户端和服务端都可以设置,两者是独立的,互不依赖,但在一方设置就可以了。 TCP的检测是应用层感知不到的,是操作系统在TCP层完成的 Read More
posted @ 2021-07-09 18:07 奋斗终生 Views(1177) Comments(0) Diggs(0) Edit
add by zhj: SqlSession是MyBatis中的非常重要的一个接口,简单的说,它是对java.sql.Connection的进一步封装(使用组合设计模式),提供给用户更强易用的CRUD方法,如下,也提供一获取Connection的方法。 1 public interface SqlS Read More
posted @ 2021-05-18 14:09 奋斗终生 Views(372) Comments(0) Diggs(0) Edit
原文:https://www.cnblogs.com/jackion5/p/14193025.html 作者:Lucky帅小武 Hikari连接池目前公认是性能最高的数据库连接池,同时也是SpringBoot2.0以后默认使用的数据库连接池。 一、Hikari的使用 1.1、Hikari相关配置 由 Read More
posted @ 2021-05-18 11:10 奋斗终生 Views(1154) Comments(0) Diggs(0) Edit
原文:https://rieckpil.de/testing-spring-boot-applications-with-rest-assured/ REST Assured is a Java DSL (Domain Specific Langauge) that aims to simplify Read More
posted @ 2021-05-12 03:05 奋斗终生 Views(276) Comments(0) Diggs(0) Edit
原文: http://ypk1226.com/2018/11/17/spring-boot/spring-boot-test-1/ http://ypk1226.com/2018/11/20/spring-boot/spring-boot-test-2/ 一、Spring Boot Test介绍 S Read More
posted @ 2021-05-12 01:33 奋斗终生 Views(1320) Comments(0) Diggs(1) Edit
原文:https://www.cnblogs.com/fengzheng/p/9070268.html 并发的三个特性 首先说我们如果要使用 volatile 了,那肯定是在多线程并发的环境下。我们常说的并发场景下有三个重要特性:原子性、可见性、有序性。只有在满足了这三个特性,才能保证并发程序正确执 Read More
posted @ 2021-04-19 14:04 奋斗终生 Views(1201) Comments(0) Diggs(1) Edit
原文:https://zhuanlan.zhihu.com/p/101974130 作者:阿茂 什么是分布式事务 说到事务,我们不得不又说到传统关系型数据库的事务,一个标准的事务应该具备四个特性:原子性、一致性、隔离性、持久性,就是我们经常说到的ACID。我们来看下维基百科上是怎么定义的: 原子性( Read More
posted @ 2021-04-09 16:31 奋斗终生 Views(586) Comments(0) Diggs(0) Edit
原文:https://blog.csdn.net/weixin_43234960/article/details/101368542 IDEA修改代码后不用重新启动即可刷新 1.File——Settings——Build,Execution,Deplyment——Compiler,选中打勾 “Bui Read More
posted @ 2021-03-25 18:00 奋斗终生 Views(1771) Comments(0) Diggs(0) Edit
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 71 下一页