摘要: Srping主要模块 Core Container spring-core,spring-beans: 提供基础功能,包括IoC和DI等特性。对依赖起到解耦作用(BeanFactory)。 spring-context: 上下文模块,基于core和beans构建,context实现以类似JNDI注册 阅读全文
posted @ 2016-07-15 21:59 leolztang 阅读(323) 评论(0) 推荐(0) 编辑
摘要: 之前写了一些辅助工作相关的Spring Boot怎么使用AOP。这里继续正题,怎么减少Spring Boot 乐观锁加锁报错的情况(基本可以解决)。 1. 包依赖 spring-boot-starter-data-jpa, Spring Boot的JPA starter h2, H2内存数据库 sp 阅读全文
posted @ 2016-05-01 12:30 leolztang 阅读(10725) 评论(0) 推荐(0) 编辑
摘要: Spring Boot with AOP 手头上的项目使用了Spring Boot, 在高并发的情况下,经常出现乐观锁加锁失败的情况(OptimisticLockingFailureException,同一时间有多个线程在更新同一条数据)。为了减少直接向服务使用者直接返回失败结果的情况,可以使用这种 阅读全文
posted @ 2016-04-30 12:00 leolztang 阅读(3253) 评论(0) 推荐(0) 编辑
摘要: Docker推荐使用CA机构颁发的TLS(Transport Layer Security Protocol)证书来保护docker仓库的安全,但是我们也可以选择使用HTTP或者自签名证书的方式实现本地私有仓库的访问。 本文将通过自签名证书的方式实现本地私有仓库的搭建。 使用自签名的方式创建私有仓库 阅读全文
posted @ 2016-03-05 16:04 leolztang 阅读(790) 评论(0) 推荐(0) 编辑
摘要: 在Windows版本Docker上运行有界面的程序 阅读全文
posted @ 2016-02-19 09:31 leolztang 阅读(888) 评论(0) 推荐(0) 编辑
摘要: Docker官方是有很详细的安装文档(https://docs.docker.com/engine/installation/ubuntulinux/),这里做了一个Ubuntu 14.04 LTS中文版的。系统要求64位$ file /sbin/init/sbin/init: ELF 64-bit... 阅读全文
posted @ 2016-01-03 21:48 leolztang 阅读(5544) 评论(0) 推荐(1) 编辑
摘要: 之前MySQL服务端本机上使用密码登陆root账号是没有问题的,但是今天不知道是因为动了哪里,登陆失败并有这个错误代码:~$ mysql -u root -pEnter password: ERROR 1698 (28000): Access denied for user 'root'@'loca... 阅读全文
posted @ 2016-01-02 17:01 leolztang 阅读(37870) 评论(8) 推荐(8) 编辑
摘要: Redis,bind属性,配置, 阅读全文
posted @ 2015-12-30 16:42 leolztang 阅读(1427) 评论(0) 推荐(0) 编辑
摘要: Redis,protected-mode,bind,属性, 阅读全文
posted @ 2015-12-30 15:54 leolztang 阅读(6884) 评论(0) 推荐(0) 编辑
摘要: package scrollable.excel.reader;import java.io.IOException; import java.io.InputStream; import java.util.Locale; import java.util.concurrent.ArrayBloc... 阅读全文
posted @ 2014-12-14 21:59 leolztang 阅读(760) 评论(0) 推荐(0) 编辑