From c82a2bc17c0b7f88624c5ac8283d11be166cb04c Mon Sep 17 00:00:00 2001 From: heibaiying <31504331+heibaiying@users.noreply.github.com> Date: Thu, 22 Aug 2019 14:46:34 +0800 Subject: [PATCH] Update README.md --- spring/spring-jdbc-annotation/README.md | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/spring/spring-jdbc-annotation/README.md b/spring/spring-jdbc-annotation/README.md index 91b1186..adcd162 100644 --- a/spring/spring-jdbc-annotation/README.md +++ b/spring/spring-jdbc-annotation/README.md @@ -3,18 +3,18 @@ ## 一、项目说明 -#### 1.1 项目结构 +### 1.1 项目结构 1. 数据源配置位于 config 目录下的 DatabaseConfig 和 DataSourceConfig; 2. 项目以单元测试的方法进行测试。 @@ -22,7 +22,7 @@
-#### 1.2 项目依赖 +### 1.2 项目依赖 ```xml @@ -48,7 +48,7 @@ ## 二、整合 JDBC Template -#### 2.1 数据库配置 +### 2.1 数据库配置 在 resources 文件夹下新建数据库配置文件 mysql.properties、oracle.properties 及其映射的实体类: @@ -86,7 +86,7 @@ public class DataSourceConfig { } ``` -#### 2.2 配置数据源 +### 2.2 配置数据源 基于注解方式配置数据源: @@ -135,7 +135,7 @@ public class DatabaseConfig { } ``` -#### 2.3 数据查询 +### 2.3 数据查询 新建查询接口及其实现类,以下示例分别查询的是 MySQL 和 Oracle 中的字典表: @@ -190,7 +190,7 @@ public class OracleDaoImpl implements OracleDao { } ``` -#### 2.4 测试查询 +### 2.4 测试查询 新建测试类进行测试: