首页>代码>spring boot整合spring mvc+mybatis实现用户注册功能>/springboot_springmvc_mybatis/src/main/java/com/ms/controller/UsersController.java
package com.ms.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

import com.ms.pojo.Users;
import com.ms.service.UsersService;

@RestController
public class UsersController {
	
	
	@Autowired
	UsersService usersService;
	
	@RequestMapping("insertUsers")
	public String doInsert(Users users) {
		
		usersService.addUsers(users);
				
		return "success";
	}

}
最近下载更多
asdfg01234  LV10 2023年7月31日
00044304  LV6 2022年11月30日
gfwrgwf  LV1 2022年5月30日
13273338297  LV1 2022年4月29日
kirito213  LV1 2022年2月11日
IT白夜  LV12 2021年12月8日
543666826  LV33 2021年11月28日
安东尼online  LV11 2021年7月15日
bluedddd  LV2 2021年6月1日
小猪猪  LV12 2021年4月7日
最近浏览更多
微信网友_6802079662936064  LV3 2023年12月31日
漫步的海星  LV4 2023年9月26日
asdfg01234  LV10 2023年7月31日
1748938504  LV2 2023年6月30日
MHMHMHMH  LV12 2023年6月15日
sdhfkh  LV4 2023年6月12日
森sdfgf  LV8 2023年6月11日
微信网友_6391873320751104  LV1 2023年3月16日
1123887212  LV1 2022年12月5日
00044304  LV6 2022年11月30日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友