diff --git a/mybatis/mybatis.md b/mybatis/mybatis.md index e47cfc9..07f94df 100644 --- a/mybatis/mybatis.md +++ b/mybatis/mybatis.md @@ -1,3 +1,59 @@ +- [mybatis框架](#mybatis框架) + - [Mybatis中主要的类及其生命周期](#mybatis中主要的类及其生命周期) + - [SqlSessionFactoryBuilder](#sqlsessionfactorybuilder) + - [SqlSessionFactory](#sqlsessionfactory) + - [SqlSession](#sqlsession) + - [Mapper实例](#mapper实例) + - [Mybatis中的配置文件](#mybatis中的配置文件) + - [properties](#properties) + - [settings](#settings) + - [typeAliases](#typealiases) + - [typeHandler](#typehandler) + - [EnumTypeHandler](#enumtypehandler) + - [ObjectFactory](#objectfactory) + - [environment](#environment) + - [transactionManager](#transactionmanager) + - [datasource](#datasource) + - [mappers](#mappers) +- [Mybatis Mapper](#mybatis-mapper) + - [select](#select) + - [update、insert、delete](#updateinsertdelete) + - [selectKey](#selectkey) + - [sql](#sql) + - [parameter](#parameter) + - [mybatis ${}](#mybatis-) + - [resultMap](#resultmap) + - [resultMap的元素和属性](#resultmap的元素和属性) + - [id和result元素](#id和result元素) + - [constructor元素](#constructor元素) + - [association元素](#association元素) + - [嵌套select](#嵌套select) + - [嵌套result](#嵌套result) + - [collection元素](#collection元素) + - [collection元素的嵌套select](#collection元素的嵌套select) + - [collection元素的嵌套result](#collection元素的嵌套result) + - [discriminator](#discriminator) + - [automapping](#automapping) + - [mybatis缓存](#mybatis缓存) + - [cache-ref](#cache-ref) + - [动态sql](#动态sql) + - [if](#if) + - [choose、when、otherwise](#choosewhenotherwise) + - [where、trim、set](#wheretrimset) + - [where](#where) + - [trim](#trim) + - [set](#set) + - [foreach](#foreach) + - [Java API](#java-api) + - [SqlSession](#sqlsession-1) + - [SqlSessionFactory](#sqlsessionfactory-1) + - [SqlSessionFactoryBuilder](#sqlsessionfactorybuilder-1) + - [SqlSessionFactoryBuilder详解](#sqlsessionfactorybuilder详解) + - [创建SqlSessionFactory的示例](#创建sqlsessionfactory的示例) + - [通过Configuration来创建SqlSessionFactory](#通过configuration来创建sqlsessionfactory) + - [SqlSessionFactory构建SqlSession实例](#sqlsessionfactory构建sqlsession实例) + - [openSession参数](#opensession参数) + # mybatis框架 ## Mybatis中主要的类及其生命周期 ### SqlSessionFactoryBuilder diff --git a/spring/json/gson/gson.md b/spring/json/gson/gson.md index 16c7e62..7c89300 100644 --- a/spring/json/gson/gson.md +++ b/spring/json/gson/gson.md @@ -1,3 +1,17 @@ +- [gson](#gson) + - [gson简介](#gson简介) + - [gson使用](#gson使用) + - [Gson库通过Maven引入](#gson库通过maven引入) + - [基本类型的序列化和反序列化](#基本类型的序列化和反序列化) + - [对象的序列化和反序列化](#对象的序列化和反序列化) + - [gson和对象联用的使用规范](#gson和对象联用的使用规范) + - [gson和嵌套类的关联使用](#gson和嵌套类的关联使用) + - [gson和数组的关联使用](#gson和数组的关联使用) + - [gson对java中的集合进行序列化和反序列化](#gson对java中的集合进行序列化和反序列化) + - [gson对Map类型的序列化和反序列化](#gson对map类型的序列化和反序列化) + - [序列化和反序列化泛型对象](#序列化和反序列化泛型对象) + - [序列化和反序列化集合,集合中保存任意类型的对象](#序列化和反序列化集合集合中保存任意类型的对象) + # gson ## gson简介 gson是一个java库,通常用来将java对象转化为其json表示的字符串,或者将json格式的字符串转化为其等价的java对象。 diff --git a/spring/log/log.md b/spring/log/log.md index 9eadf98..6fc345e 100644 --- a/spring/log/log.md +++ b/spring/log/log.md @@ -1,3 +1,11 @@ +- [Spring Logging](#spring-logging) + - [Log Format](#log-format) + - [控制台输出](#控制台输出) + - [文件输出](#文件输出) + - [File Rotation](#file-rotation) + - [Log Level](#log-level) + - [Log Group](#log-group) + # Spring Logging ## Log Format 默认Spring Boot输出日志的格式如下