diff --git a/src/doc/sql/ssm2.sql b/src/doc/sql/ssm2.sql new file mode 100644 index 0000000..64c1f40 --- /dev/null +++ b/src/doc/sql/ssm2.sql @@ -0,0 +1,37 @@ +/* + Navicat Premium Data Transfer + + Source Server : localhost + Source Server Type : MySQL + Source Server Version : 50716 + Source Host : localhost + Source Database : ssm2 + + Target Server Type : MySQL + Target Server Version : 50716 + File Encoding : utf-8 + + Date: 01/05/2017 22:28:08 PM +*/ + +SET NAMES utf8; +SET FOREIGN_KEY_CHECKS = 0; + +-- ---------------------------- +-- Table structure for `datasource` +-- ---------------------------- +DROP TABLE IF EXISTS `datasource`; +CREATE TABLE `datasource` ( + `id` int(50) NOT NULL AUTO_INCREMENT, + `name` varchar(1000) DEFAULT NULL COMMENT '聊天内容', + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=29 DEFAULT CHARSET=utf8; + +-- ---------------------------- +-- Records of `datasource` +-- ---------------------------- +BEGIN; +INSERT INTO `datasource` VALUES ('2', '
9090
说的是都是
你说什么呢
你好啊
nihao啊
'), ('14', '说的'), ('15', '哈哈哈哈搞好久
'), ('18', '8989
说的是
哈哈
'), ('23', '你说什么
你好
积极
'), ('28', '7878'); +COMMIT; + +SET FOREIGN_KEY_CHECKS = 1; diff --git a/src/main/resources/jdbc.properties b/src/main/resources/jdbc.properties index 04f489a..486666d 100644 --- a/src/main/resources/jdbc.properties +++ b/src/main/resources/jdbc.properties @@ -3,17 +3,17 @@ jdbc.driverClass=com.mysql.jdbc.Driver #第一个数据源 jdbc.url=jdbc:mysql://127.0.0.1:3306/ssm?useUnicode=true&characterEncoding=utf8 jdbc.user=root -jdbc.password=tiger +jdbc.password=xxxx #第二个数据源 jdbc.url2=jdbc:mysql://127.0.0.1:3306/ssm2?useUnicode=true&characterEncoding=utf8 jdbc.user2=root -jdbc.password2=tiger +jdbc.password2=xxxx #redis中心 redis.host=27.126.180.210 redis.port=6379 -redis.password=tiger +redis.password=xxxx redis.maxIdle=100 redis.maxActive=300 redis.maxWait=10000