02 2023 档案
摘要:Mybatis内置的ExecutorType有3种,SIMPLE、REUSE、BATCH; 默认的是simple,该模式下它为每个语句的执行创建一个新的预处理语句,单条提交sql;而batch模式重复使用已经预处理的语句,并且批量执行所有更新语句,显然batch性能将更优;但batch模式也有自己的
阅读全文
摘要:@Component public class ImplementSubformFactory implements ApplicationContextAware { private static Map<String, ImplementSubformService> productMap =
阅读全文
摘要:###语法: select * from 表名 where 条件1 start with 条件2 connect by 条件3; 条件2: 是根结点的限定语句,当然可以放宽限定条件,以取得多个根结点,实际就是多棵树。 条件3: 是连接条件,其中用PRIOR表示上一条记录,比如 CONNECT BY
阅读全文
摘要:SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); List<TestVO> list = new ArrayList<>(); for (int i = 0; i < 10; i++) { TestVO te
阅读全文
摘要:@DateTimeFormat是spring的注解,只对入参有效, @JsonFormat 是Jackson的,请求入参和出参都生效 //@DateTimeFormat(pattern = "yyyy:MM:dd HH:mm:ss") @JsonFormat(pattern = "yyyy:MM:d
阅读全文
摘要:response.setContentType("application/vnd.ms-excel;charset=utf-8"); response.setHeader("Content-Disposition", "attachment;filename=" + new String((Date
阅读全文
摘要:将手机号加密为base64格式的密文: utl_raw.cast_to_varchar2(utl_encode.base64_encode(utl_raw.cast_to_raw(#{mobile}))) 解密: utl_raw.cast_to_varchar2(utl_encode.base64_
阅读全文