From 4f4c4c473edc154ea9be7ab5e163f2c58e77c673 Mon Sep 17 00:00:00 2001 From: Wklizx Date: Thu, 18 Aug 2022 20:24:21 +0800 Subject: [PATCH] 8.18 --- .../java/com/sixteam/irs/controller/UserController.java | 9 +++++++++ ...347\256\200\345\216\206\345\210\227\350\241\250.html" | 3 +-- ...347\224\250\346\210\267\351\246\226\351\241\265.html" | 4 ++-- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/sixteam/irs/controller/UserController.java b/src/main/java/com/sixteam/irs/controller/UserController.java index d01ae62..3f147b8 100644 --- a/src/main/java/com/sixteam/irs/controller/UserController.java +++ b/src/main/java/com/sixteam/irs/controller/UserController.java @@ -6,6 +6,7 @@ import com.sixteam.irs.service.UserService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; +import org.springframework.web.bind.annotation.CrossOrigin; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; @@ -14,12 +15,20 @@ import javax.servlet.http.HttpSession; import java.util.List; @Controller +@CrossOrigin @RequestMapping("/") public class UserController { @Autowired private UserService userService; + @RequestMapping("/test") + @ResponseBody + public List test(){ + List userList = userService.findAllUser(); + return userList; + } + @RequestMapping("/") public String start(){ System.out.println("启动"); diff --git "a/src/main/resources/templates/test/resume/\345\255\246\345\221\230\347\256\200\345\216\206\345\210\227\350\241\250.html" "b/src/main/resources/templates/test/resume/\345\255\246\345\221\230\347\256\200\345\216\206\345\210\227\350\241\250.html" index aeab5ce..f038c54 100644 --- "a/src/main/resources/templates/test/resume/\345\255\246\345\221\230\347\256\200\345\216\206\345\210\227\350\241\250.html" +++ "b/src/main/resources/templates/test/resume/\345\255\246\345\221\230\347\256\200\345\216\206\345\210\227\350\241\250.html" @@ -5,7 +5,6 @@ 学员简历列表 -

内容 @@ -13,7 +12,7 @@ - +
diff --git "a/src/main/resources/templates/test/user/\347\224\250\346\210\267\351\246\226\351\241\265.html" "b/src/main/resources/templates/test/user/\347\224\250\346\210\267\351\246\226\351\241\265.html" index 3da8aba..fb280e1 100644 --- "a/src/main/resources/templates/test/user/\347\224\250\346\210\267\351\246\226\351\241\265.html" +++ "b/src/main/resources/templates/test/user/\347\224\250\346\210\267\351\246\226\351\241\265.html" @@ -10,8 +10,8 @@ 作为企业查看自己的岗位列表 - 作为企业查看自己的岗位列表 - 作为企业查看自己的岗位列表作为企业查看自己的岗位列表 + + \ No newline at end of file -- Gitee