ssm radis mysql_基于SSM的Maven项目(Redis和Mysql)配置文件整合

src/main/resources

1.  db 文件夹

1.1  db.properties

jdbc.driverClass=com.mysql.jdbc.Driver

jdbc.url=jdbc:mysql://192.168.175.102:3306/zy_video2?userSSL=false

jdbc.user=ZY103

jdbc.password=mP@A8Vqp

redis.host=192.168.175.102

redis.port=6379

redis.pass=123456

redis.maxTotal=30

redis.maxIdle=5

1.2  db.sql

2.  mybatis 文件夹

2.1  mybatis-config.xml

/p>

PUBLIC "-//mybatis.org//DTD Config 3.0//EN"

"http://mybatis.org/dtd/mybatis-3-config.dtd">

2.2  dao对应生成的Mapper文件

3.  spring 文件夹

3.1  spring-dao.xml

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"

xsi:schemaLocation="http://www.springframework.org/schema/beans

http://www.springframework.org/schema/beans/spring-beans.xsd

http://www.springframework.org/schema/context

http://www.springframework.org/schema/context/spring-context.xsd ">

3.2  spring-redis.xml

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xmlns:context="http://www.springframework.org/schema/context"

xmlns:tx="http://www.springframework.org/schema/tx"

xsi:schemaLocation="http://www.springframework.org/schema/beans

http://www.springframework.org/schema/beans/spring-beans.xsd

http://www.springframework.org/schema/context

http://www.springframework.org/schema/context/spring-context.xsd

http://www.springframework.org/schema/tx

http://www.springframework.org/schema/tx/spring-tx.xsd ">

3.3  sprinf-service.xml

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xmlns:context="http://www.springframework.org/schema/context"

xmlns:tx="http://www.springframework.org/schema/tx"

xsi:schemaLocation="http://www.springframework.org/schema/beans

http://www.springframework.org/schema/beans/spring-beans.xsd

http://www.springframework.org/schema/context

http://www.springframework.org/schema/context/spring-context.xsd

http://www.springframework.org/schema/tx

http://www.springframework.org/schema/tx/spring-tx.xsd ">

3.4  spring-web.xml

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xmlns:context="http://www.springframework.org/schema/context"

xmlns:mvc="http://www.springframework.org/schema/mvc"

xsi:schemaLocation="http://www.springframework.org/schema/beans

http://www.springframework.org/schema/beans/spring-beans.xsd

http://www.springframework.org/schema/context

http://www.springframework.org/schema/context/spring-context.xsd

http://www.springframework.org/schema/mvc

http://www.springframework.org/schema/mvc/spring-mvc.xsd">

4.web.xml

xmlns="http://xmlns.jcp.org/xml/ns/javaee"

xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"

id="WebApp_ID" version="3.1">

VideoAdmin

index.html

index.htm

index.jsp

default.html

default.htm

default.jsp

org.springframework.web.context.ContextLoaderListener

contextConfigLocation

classpath:spring/spring-*.xml

encodingFilter

org.springframework.web.filter.CharacterEncodingFilter

encoding

UTF-8

encodingFilter

/*

dispatcherServlet

org.springframework.web.servlet.DispatcherServlet

contextConfigLocation

classpath:spring/spring-mvc.xml

dispatcherServlet

/

5.  pom.xml

xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

4.0.0

com.zhiyou100

RedisTest3

0.0.1-SNAPSHOT

war

org.mybatis

mybatis

3.4.5

com.mchange

c3p0

0.9.5.2

mysql

mysql-connector-java

5.1.43

org.mybatis

mybatis-spring

1.3.1

org.springframework

spring-webmvc

4.3.10.RELEASE

org.springframework

spring-jdbc

4.3.10.RELEASE

org.springframework

spring-tx

4.3.10.RELEASE

javax.servlet

javax.servlet-api

3.1.0

provided

com.fasterxml.jackson.core

jackson-core

2.9.1

com.fasterxml.jackson.core

jackson-databind

2.9.1

org.springframework.data

spring-data-redis

1.8.7.RELEASE

redis.clients

jedis

2.9.0

org.apache.tomcat.maven

tomcat7-maven-plugin

2.2

org.apache.maven.plugins

maven-war-plugin

src/test

*

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值