diff --git a/mybatis_generator/pom.xml b/mybatis_generator/pom.xml
new file mode 100644
index 0000000..8da62a8
--- /dev/null
+++ b/mybatis_generator/pom.xml
@@ -0,0 +1,57 @@
+
+
+
+ demay
+ com.ssm
+ 1.0-SNAPSHOT
+
+ 4.0.0
+
+ mybatis_generator
+
+
+
+
+ ${basedir}/src/main/java
+ com.ssm.manage.dao
+ com.ssm.manage.entity
+
+ ${basedir}/src/main/resources
+ sqlmap
+
+
+
+
+ dao
+
+
+ org.mybatis.generator
+ mybatis-generator-maven-plugin
+ 1.3.6
+
+
+ mysql
+ mysql-connector-java
+ 5.1.44
+
+
+ tk.mybatis
+ mapper
+ 3.4.5
+
+
+
+
+ true
+
+ true
+
+
+ ${basedir}/src/main/resources/generator/generatorConfig.xml
+
+
+
+
+
\ No newline at end of file
diff --git a/mybatis_generator/src/main/resources/database.properties b/mybatis_generator/src/main/resources/database.properties
new file mode 100644
index 0000000..c68882a
--- /dev/null
+++ b/mybatis_generator/src/main/resources/database.properties
@@ -0,0 +1,4 @@
+spring.datasource.url=jdbc:mysql://192.168.31.40:3306/dcmy?useSSL=false&serverTimezone=UTC&characterEncoding=UTF-8
+spring.datasource.username=root
+spring.datasource.password=123456
+spring.datasource.driver-class-name=com.mysql.jdbc.Driver
diff --git a/mybatis_generator/src/main/resources/generator/generatorConfig.xml b/mybatis_generator/src/main/resources/generator/generatorConfig.xml
new file mode 100644
index 0000000..727af6e
--- /dev/null
+++ b/mybatis_generator/src/main/resources/generator/generatorConfig.xml
@@ -0,0 +1,335 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/redis/pom.xml b/redis/pom.xml
new file mode 100644
index 0000000..39573c3
--- /dev/null
+++ b/redis/pom.xml
@@ -0,0 +1,49 @@
+
+
+
+ demay
+ com.ssm
+ 1.0-SNAPSHOT
+
+ 4.0.0
+
+ redis
+
+
+
+ org.springframework.boot
+ spring-boot-starter-data-redis
+
+
+
+ commons-lang
+ commons-lang
+
+
+ com.fasterxml.jackson.core
+ jackson-core
+ 2.8.10
+
+
+ com.google.code.gson
+ gson
+
+
+
+ com.fasterxml.jackson.core
+ jackson-databind
+ 2.8.10
+
+
+ org.projectlombok
+ lombok
+ 1.18.8
+
+
+
+
+ ${project.artifactId}-${project.version}
+
+
\ No newline at end of file
diff --git a/redis/src/main/java/com/ssm/config/RedisConfig.java b/redis/src/main/java/com/ssm/config/RedisConfig.java
new file mode 100644
index 0000000..54aec64
--- /dev/null
+++ b/redis/src/main/java/com/ssm/config/RedisConfig.java
@@ -0,0 +1,86 @@
+package com.ssm.config;
+
+import com.fasterxml.jackson.annotation.JsonAutoDetect;
+import com.fasterxml.jackson.annotation.PropertyAccessor;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.beans.factory.annotation.Qualifier;
+import org.springframework.beans.factory.annotation.Value;
+import org.springframework.cache.annotation.CachingConfigurerSupport;
+import org.springframework.cache.annotation.EnableCaching;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.context.annotation.PropertySource;
+import org.springframework.core.env.MapPropertySource;
+import org.springframework.data.redis.connection.RedisClusterConfiguration;
+import org.springframework.data.redis.connection.RedisConnectionFactory;
+import org.springframework.data.redis.connection.RedisPassword;
+import org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory;
+import org.springframework.data.redis.core.RedisTemplate;
+import org.springframework.data.redis.listener.RedisMessageListenerContainer;
+import org.springframework.data.redis.serializer.Jackson2JsonRedisSerializer;
+import org.springframework.data.redis.serializer.StringRedisSerializer;
+
+import java.util.HashMap;
+import java.util.Map;
+
+
+@Configuration
+@EnableCaching
+@Slf4j
+public class RedisConfig extends CachingConfigurerSupport {
+
+// @Value("${redis.host}")
+// private String host; // Redis服务器地址
+// @Value("${redis.port}")
+// private int port; // Redis服务器连接端口
+ @Value("${spring.redis.password}")
+ private String password; // Redis服务器连接密码(默认为空)
+ @Value("${spring.redis.timeout}")
+ private int timeout; // 连接超时时间(毫秒)
+ @Value("${spring.redis.database}")
+ private int database; //
+ @Value("${spring.redis.jedis.pool.max-active}")
+ private int maxTotal; // 连接池最大连接数(使用负值表示没有限制)
+ @Value("${spring.redis.jedis.pool.max-wait}")
+ private int maxWaitMillis; // 连接池最大阻塞等待时间(使用负值表示没有限制)
+ @Value("${spring.redis.jedis.pool.max-idle}")
+ private int maxIdle; // 连接池中的最大空闲连接
+ @Value("${spring.redis.jedis.pool.min-idle}")
+ private int minIdle; // 连接池中的最小空闲连接
+
+
+
+
+ /**
+ * 实例化 RedisTemplate 对象
+ * @return
+ */
+ @Bean(name = "redisTemplate")
+ public RedisTemplate