Skip to content

Commit 04f3e40

Browse files
committed
add sql
1 parent 86d5232 commit 04f3e40

2 files changed

Lines changed: 32 additions & 1 deletion

File tree

mybatis/USER.sql

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
/*
2+
Navicat MySQL Data Transfer
3+
4+
Source Server : xiaomo2017(106.15.188.160)
5+
Source Server Version : 50717
6+
Source Host : 106.15.188.160:3306
7+
Source Database : xiaomo
8+
9+
Target Server Type : MYSQL
10+
Target Server Version : 50717
11+
File Encoding : 65001
12+
13+
Date: 2017-09-06 17:45:51
14+
*/
15+
16+
SET FOREIGN_KEY_CHECKS=0;
17+
18+
-- ----------------------------
19+
-- Table structure for USER
20+
-- ----------------------------
21+
DROP TABLE IF EXISTS `USER`;
22+
CREATE TABLE `USER` (
23+
`id` bigint(20) DEFAULT NULL,
24+
`name` varchar(255) DEFAULT NULL,
25+
`age` int(11) DEFAULT NULL
26+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
27+
28+
-- ----------------------------
29+
-- Records of USER
30+
-- ----------------------------
31+
INSERT INTO `USER` VALUES ('1', 'xiaomo', '25');

mybatis/src/main/java/info/xiaomo/mybatis/controller/MybatisUserController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public MybatisUserController(UserMapper userMapper) {
3535
}
3636

3737

38-
@RequestMapping("findAll")
38+
@RequestMapping("/")
3939
public Result<List<User>> findAll() {
4040
List<User> all = userMapper.findAll();
4141
return new Result<>(all);

0 commit comments

Comments
 (0)