From 4f3161337c73b3472719c1fb2e75734d34acd28b Mon Sep 17 00:00:00 2001 From: crossoverJie Date: Thu, 5 Jan 2017 22:32:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/doc/sql/ssm2.sql | 37 ++++++++++++++++++++++++++++++ src/main/resources/jdbc.properties | 6 ++--- 2 files changed, 40 insertions(+), 3 deletions(-) create mode 100644 src/doc/sql/ssm2.sql 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

'), ('7', 'hah'), ('9', '

说的是都是

'), ('10', '哈哈你说的是呢
'), ('11', '

你说什么呢

'), ('12', '

你好啊

'), ('13', '

nihao啊

'), ('14', '说的'), ('15', '哈哈哈哈
'), ('16', '你在干甚呢
'), ('17', '

搞好久

'), ('18', '

8989

'), ('19', '9899'), ('20', '家哈哈哈'), ('21', '

说的是

'), ('22', '

哈哈

'), ('23', '

你说什么

'), ('24', '909'), ('25', '

你好

'), ('26', '你在干嘛呢
'), ('27', '

积极

'), ('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