首页>代码>基于springboot+mybatis的项目搭建实例,适合初学者学习>/demo/src/main/java/com/example/demo/controller/UserController.java
package com.example.demo.controller;

import com.example.demo.pojo.User;
import com.example.demo.service.UserService;
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
    private UserService userService;

    @RequestMapping("/getUserInfo")
    public User getUserInfo(String userId){
        return userService.getUserInfo(userId);
    }

}
最近下载更多
helloworldsbsb  LV7 2021年12月14日
liuwei7275  LV1 2021年8月24日
116678047  LV1 2021年2月25日
hanweinan6  LV12 2021年2月19日
ycy761176736  LV2 2020年11月9日
小牧34556  LV8 2020年9月23日
ithYou  LV1 2020年9月20日
你好啊呐  LV19 2020年8月27日
new_docker  LV15 2020年7月27日
zhos0212  LV19 2020年7月14日
最近浏览更多
1941549176 4月29日
暂无贡献等级
wolf521hf  LV6 2023年11月11日
jkjfdgbkl  LV2 2023年11月1日
duon12  LV1 2023年9月25日
漫步的海星  LV4 2023年9月21日
微信网友_6401519212040192  LV1 2023年4月25日
微信网友_6437456389640192  LV3 2023年4月21日
longge828 2023年2月1日
暂无贡献等级
jiangandchen  LV5 2022年11月22日
LukeMaster  LV1 2022年11月19日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友