diff --git a/src/main/java/com/sixteam/irs/controller/UserController.java b/src/main/java/com/sixteam/irs/controller/UserController.java index d01ae629e9c692c5cc86be119d1703a615908cb4..3f147b8b429245b739584977a6b2cbea369a262b 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 aeab5ce7c206a748df96755610de6589849e688f..f038c54e76608dc9f3f29a44305a0e7372d5e8bc 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 3da8aba09a3076805c8b07ad63a1e08bf1a9532b..fb280e15aa9d0681a6131b154ffeb6cb65efa5e6 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