File tree Expand file tree Collapse file tree
src/main/java/info/xiaomo/mybatis/controller Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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' );
Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments