增加redis README.md
This commit is contained in:
@ -106,8 +106,6 @@
|
||||
</project>
|
||||
```
|
||||
|
||||
<br/>
|
||||
|
||||
#### 2、在web.xml 进行如下配置
|
||||
|
||||
```xml
|
||||
@ -177,8 +175,6 @@
|
||||
</web-app>
|
||||
```
|
||||
|
||||
<br/>
|
||||
|
||||
#### 3、在resources文件夹下新建数据库配置文件jdbc.properties
|
||||
|
||||
```properties
|
||||
@ -193,8 +189,6 @@ oracle.username=用户名
|
||||
oracle.password=密码
|
||||
```
|
||||
|
||||
<br/>
|
||||
|
||||
#### 4、在resources文件夹下创建springApplication.xml 配置文件和druid.xml配置文件
|
||||
|
||||
```xml
|
||||
@ -260,7 +254,7 @@ oracle.password=密码
|
||||
<!--指定配置文件的位置-->
|
||||
<context:property-placeholder location="classpath:jdbc.properties"/>
|
||||
|
||||
<!--配置druid数据源 关于更多的配置项 可以参考官方文档 <a src="https://github.com/alibaba/druid/wiki/DruidDataSource%E9%85%8D%E7%BD%AE%E5%B1%9E%E6%80%A7%E5%88%97%E8%A1%A8" > -->
|
||||
<!--配置druid数据源 关于更多的配置项 可以参考官方文档 <a href="https://github.com/alibaba/druid/wiki/DruidDataSource%E9%85%8D%E7%BD%AE%E5%B1%9E%E6%80%A7%E5%88%97%E8%A1%A8" > -->
|
||||
<bean id="dataSource" class="com.alibaba.druid.pool.DruidDataSource" init-method="init" destroy-method="close">
|
||||
<!-- 基本属性 url、user、password -->
|
||||
<property name="url" value="${mysql.url}"/>
|
||||
@ -308,8 +302,6 @@ oracle.password=密码
|
||||
</beans>
|
||||
```
|
||||
|
||||
<br/>
|
||||
|
||||
#### 5、新建mybtais 配置文件 更多settings配置项可以参考[官方文档](http://www.mybatis.org/mybatis-3/zh/configuration.html)
|
||||
|
||||
```xml
|
||||
@ -333,8 +325,6 @@ oracle.password=密码
|
||||
|
||||
```
|
||||
|
||||
<br/>
|
||||
|
||||
#### 6、新建查询接口及其对应的mapper文件
|
||||
|
||||
```java
|
||||
@ -382,8 +372,6 @@ public interface OracleDao {
|
||||
</mapper>
|
||||
```
|
||||
|
||||
<br/>
|
||||
|
||||
#### 7.新建测试controller进行测试
|
||||
|
||||
```java
|
||||
@ -445,8 +433,6 @@ public class OracleController {
|
||||
|
||||
```
|
||||
|
||||
<br/>
|
||||
|
||||
#### 8、druid 监控页面访问地址http://localhost:8080/druid/index.html
|
||||
|
||||

|
||||
|
Reference in New Issue
Block a user