摘要:@Transactional(readOnly = true)有很多优点。 性能改进:只读实体不进行脏检查 节省内存:不维护持久状态的快照 数据一致性:只读实体的更改不会持久化 当我们使用主从或读写副本集(或集群)时,@Transactional(readOnly = true)使我们能够连接到只读
阅读全文
摘要:参考:https://www.win10h.com/jiaocheng/16250.html
阅读全文
摘要:@Override @Transactional(rollbackFor = Exception.class) public Map<String, Object> SaveOrUpdateExpert() { Map<String,Object> retMap = null; String msg
阅读全文
摘要:<if test="areaCode != null and areaCode !=''"> and AREACODE in (${areaCode}) </if> 如果直接传入拼接好的where in 条件, 比如('111','222','333'),则需要使用${areaCode}传参,即绝对
阅读全文
摘要:package org.example.a; import java.util.ArrayList; import java.util.List; class Outer{ private int[] data; public Outer(int size) { this.data = new in
阅读全文