https://github.com/FaceGhost/Simple-Mult-SSMjava
https://github.com/FaceGhost/Simple-SSMmysql
jdk1.7git
spring 4.2.4github
mybatis 3.2.8spring
hessian 4.0.38sql
開發工具:eclipse數據庫
數據庫:mysql瀏覽器
https://github.com/FaceGhost/Simple-Mult-SSM/blob/master/simple-mult-server/src/main/resources/app.propertiestomcat
CREATE TABLE `example` ( `id` int(11) NOT NULL AUTO_INCREMENT, `user_name` varchar(50) DEFAULT NULL, `addr` varchar(500) DEFAULT NULL, `sex` tinyint(4) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=3363 DEFAULT CHARSET=utf8;
INSERT INTO `example` VALUES ('3357', '張三', '上海市徐彙區', '1'); INSERT INTO `example` VALUES ('3358', '李四', '北京市朝陽區', '1'); INSERT INTO `example` VALUES ('3359', '王五', '上海金山城市沙灘', '2'); INSERT INTO `example` VALUES ('3360', '麻溜', '上海市長寧區天山路789號', '1'); INSERT INTO `example` VALUES ('3361', '朝七', '上海市嘉定區真南路4500號', '1'); INSERT INTO `example` VALUES ('3362', '黃八', '上海市浦東新區秀浦路798弄之1-7號', '1');
eclipse 導入mybatis
simple-mult-ssm 項目右鍵->Debug As -> Maven install
simple-mult-server 項目右鍵->Debug As -> Maven build ... Goals 輸入: tomcat7:run
simple-mult-client 項目右鍵->Debug As -> Maven build ... Goals 輸入: tomcat7:run
http://localhost:5000/simple-mult-ssm-client/example
長按關注見鬼網