From 8c55648e5cbd3cef6c7a4aa5eefb7c3b099c7bcc Mon Sep 17 00:00:00 2001 From: luoxiang <2806718453@qq.com> Date: Sat, 5 Jan 2019 09:29:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20README.md=20=E8=AF=B4?= =?UTF-8?q?=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spring/spring-druid-mybatis/README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/spring/spring-druid-mybatis/README.md b/spring/spring-druid-mybatis/README.md index cf2cec7..8b37b5b 100644 --- a/spring/spring-druid-mybatis/README.md +++ b/spring/spring-druid-mybatis/README.md @@ -1,6 +1,6 @@ # spring +druid+ mybatis(xml配置方式) -1、创建标准web maven工程,导入依赖 +#### 1、创建标准web maven工程,导入依赖 ```xml @@ -106,7 +106,7 @@ ``` -2、在web.xml 进行如下配置 +#### 2、在web.xml 进行如下配置 ```xml @@ -132,7 +132,7 @@ / - + DruidStatView com.alibaba.druid.support.http.StatViewServlet @@ -175,7 +175,7 @@ ``` -3、在resources文件夹下新建数据库配置文件jdbc.properties +#### 3、在resources文件夹下新建数据库配置文件jdbc.properties ```properties # mysql 数据库配置 @@ -302,7 +302,7 @@ oracle.password=密码 ``` -5、新建mybtais 配置文件 更多settings配置项可以参考[官方文档](http://www.mybatis.org/mybatis-3/zh/configuration.html) +#### 5、新建mybtais 配置文件 更多settings配置项可以参考[官方文档](http://www.mybatis.org/mybatis-3/zh/configuration.html) ```xml @@ -325,7 +325,7 @@ oracle.password=密码 ``` -6、新建查询接口及其对应的mapper文件 +#### 6、新建查询接口及其对应的mapper文件 ```java public interface MysqlDao { @@ -372,7 +372,7 @@ public interface OracleDao { ``` -7.新建测试controller进行测试 +#### 7.新建测试controller进行测试 ```java package com.heibaiying.controller; @@ -433,6 +433,6 @@ public class OracleController { ``` -8、druid 监控页面访问地址http://localhost:8080/druid/index.html +#### 8、druid 监控页面访问地址http://localhost:8080/druid/index.html ![druid控制台](https://github.com/heibaiying/spring-samples-for-all/blob/master/pictures/druid%E6%8E%A7%E5%88%B6%E5%8F%B0.png)