摘要:
SOA service-oriented architectures 服务导向式架构 目的 解决单体应用规模增加时带来的问题 关键词:Monolithic 、SOA、 架构、分布式系统 阅读全文
摘要:
CAS是什么 ComperAndSwap 乐观锁 每次试图去拿锁,并且比较判断,判断后更改。 悲观锁 默认是存在问题的,拿一次有问题则不再获取锁。 GC两种回收机制 CMS G1 阅读全文
摘要:
小常识 :key值拿 : 区分自动分配命名区间。 存值 string opsForValue.set() 赋值 opsForValue.get()取值 list opsForList.leftPushAll()赋值 opsForList.rang(key,0.-1)取值 加时效 expire(key 阅读全文
摘要:
网卡一 选择网络地址转换(NAT) 网卡二 选择桥接网卡 第一个选项 之后ping自己本机 网络通了 阅读全文
摘要:
分页一般场景用于查询所有数据 包引用 例 Page<info> xxxxinfoList = xxxrepository.findAll(Pageable pageable); 在请求时用 阅读全文
摘要:
需配置时区 Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'xxx.hibernate_sequence' doesn't exist 背景: springboot 1.5.9.RELEASE 阅读全文
摘要:
首先安装git 度娘 第二步 git init你所创建的的文件夹 第三步 git status来查看你当前的状态 第四步 git add .添加项目到git中 第五步 git commit 第六步 ssh-keygen -t rsa -C "758394881@qq.com" 准备关联githu 一 阅读全文
摘要:
继承QuartzJobBean 重写executeInternal方法 实现定时任务功能 @DisallowConcurrentExecution 标签 在此次执行完毕前不执行下次定时任务 阅读全文
摘要:
使用@Async标签 导入包 org.springframework.scheduling.annotation.Async 并配置并发线程池asyncTaskConfig 实现AsyncConfigurer接口 连接池注解 @EnableAsync @Configure 重写接口getAsyncE 阅读全文
摘要:
Iterable<Entity> geted = entityDao.findAll(); Iterable<Entity> geted = entityDao.findAll(); List<Entity> list = Lists.newArrays(); geted.forEach(singl 阅读全文