2023-12-3

package com.example.backendmanage.controller;

import com.example.backendmanage.common.AjaxResult;
import com.example.backendmanage.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("user")
public class UserController {
    @Autowired
    UserMapper userMapper;

    @RequestMapping("/findAllUser")
    public AjaxResult findAllUser(){
        return AjaxResult.success(userMapper.findAll());
    }
}
posted @ 2023-12-03 17:27  超爱彬宝同学  阅读(4)  评论(0)    收藏  举报