標籤:北京市 分離 ati innodb 架構 基於 sql ima web
github地址
https://github.com/FaceGhost/Simple-Mult-SSM
基於Simple-SSM
https://github.com/FaceGhost/Simple-SSM
開發版本
-
jdk1.7
-
spring 4.2.4
-
mybatis 3.2.8
-
hessian 4.0.38
-
開發工具:eclipse
-
資料庫:mysql
資料庫設定檔位置
https://github.com/FaceGhost/Simple-Mult-SSM/blob/master/simple-mult-server/src/main/resources/app.properties
QuickStart建立表
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 匯入
-
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
長按關注見鬼網
Simple-Mult-SSM 基於Simple-SSM擴充Hessian註解的javaweb前後端分離SSM基礎架構