java代码结构图,controller层,dao层,service层,pojo层
配置文件图
web图
创建数据库
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for move_booking
-- ----------------------------
DROp TABLE IF EXISTS `move_booking`;
CREATE TABLE `move_booking` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`area` varchar(50) DEFAULT NULL,
`cartype` varchar(20) DEFAULT NULL,
`movedate` datetime DEFAULT NULL,
`contact` varchar(20) DEFAULT NULL,
`phone` varchar(20) DEFAULT NULL,
`status` varchar(10) DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=28 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of move_booking
-- ----------------------------
INSERT INTO `move_booking` VALUES ('1', '朝阳区', '1042火车', '2011-03-27 00:00:00', '李四', '12312312315', '1');
INSERT INTO `move_booking` VALUES ('2', '朝阳区', '1043货车', '2011-03-28 00:00:00', '王麻子', '13131231231', '0');
INSERT INTO `move_booking` VALUES ('3', '海淀区', '皮卡', '2021-01-01 00:00:00', '张三', '12312312317', '0');
-- ----------------------------
-- Table structure for users
-- ----------------------------
DROP TABLE IF EXISTS `users`;
CREATE TABLE `users` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(40) COLLATE utf8_unicode_ci DEFAULT NULL,
`password` varchar(225) COLLATE utf8_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- ----------------------------
-- Records of users
-- ----------------------------
INSERT INTO `users` VALUES ('1', '1234', '123456');
INSERT INTO `users` VALUES ('2', '1235', '123456');
INSERT INTO `users` VALUES ('3', '1236', '123456');
首先web-inf下创建lib文件导入全部的jar包
云盘链接:https://pan.baidu.com/s/1_MSPk7Y-B-yKy0Q_hawLgw
提取码:xiik
先启动tomcat测试一下能否正常启动
配置web-inf=>web.xml
org.springframework.web.context.ContextLoaderListener contextConfigLocation classpath:applicationContext.xml struts2 org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter struts2 vertical-align:middle } 顺丰搬家预约信息查询 ————顺风搬家 添加


