增加README.md

This commit is contained in:
luoxiang 2019-01-05 09:36:34 +08:00
parent e1dc1ec297
commit b84edb180e

View File

@ -106,6 +106,8 @@
</project> </project>
``` ```
<br/>
#### 2、在web.xml 进行如下配置 #### 2、在web.xml 进行如下配置
```xml ```xml
@ -175,6 +177,8 @@
</web-app> </web-app>
``` ```
<br/>
#### 3、在resources文件夹下新建数据库配置文件jdbc.properties #### 3、在resources文件夹下新建数据库配置文件jdbc.properties
```properties ```properties
@ -189,6 +193,8 @@ oracle.username=用户名
oracle.password=密码 oracle.password=密码
``` ```
<br/>
#### 4、在resources文件夹下创建springApplication.xml 配置文件和druid.xml配置文件 #### 4、在resources文件夹下创建springApplication.xml 配置文件和druid.xml配置文件
```xml ```xml
@ -302,6 +308,8 @@ oracle.password=密码
</beans> </beans>
``` ```
<br/>
#### 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 ```xml
@ -325,6 +333,8 @@ oracle.password=密码
``` ```
<br/>
#### 6、新建查询接口及其对应的mapper文件 #### 6、新建查询接口及其对应的mapper文件
```java ```java
@ -372,6 +382,8 @@ public interface OracleDao {
</mapper> </mapper>
``` ```
<br/>
#### 7.新建测试controller进行测试 #### 7.新建测试controller进行测试
```java ```java
@ -433,6 +445,8 @@ public class OracleController {
``` ```
<br/>
#### 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) ![druid控制台](https://github.com/heibaiying/spring-samples-for-all/blob/master/pictures/druid%E6%8E%A7%E5%88%B6%E5%8F%B0.png)