摘要:
mysql SELECT VERSION(), CURRENT_DATE, now();select user(); create database pets;show databases; use pets; CREATE TABLE cats( id INT unsigned NOT NULL 阅读全文
摘要:
Mybatis动态sql用于根据不同条件拼接sql语句. if 动态 SQL 通常是有条件地包含 where 子句,如: <select id="findActiveBlogWithTitleLike" resultType="Blog"> SELECT * FROM BLOG WHERE stat 阅读全文
摘要:
Java中的ThreadLocal 可以看做以线程标识为key的Map,在多线程开发中使用非常方便。 示例 运行结果 源码解析 1 public ThreadLocal() { 2 } 3 4 /** 5 * Returns the value in the current thread's cop 阅读全文