首页>代码>spring+spring mvc+mybatis搭建简单的java web项目框架>/LearnChineseweb/src/main/java/com/atguigu/crud/controller/Dept_controller.java
package com.atguigu.crud.controller;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import com.atguigu.crud.service.Schoolinterfase;
import com.atguigu.test.utils.Return;
@Controller
@RequestMapping("/login")
public class Dept_controller {

	@Resource 
	private Schoolinterfase deptserver;
	
	
	@RequestMapping("/dept")
	@ResponseBody
	public Return lodin(@RequestParam(value="name")String name,@RequestParam(value="password")String password,HttpServletRequest request)
	{
		System.out.println(name+"====="+password);
		Integer list=(Integer) deptserver.getall(name,password,request);
		if(list != 0)
		{
			return Return.success(list, "腎翻傖髡");
		}
		else
		{
			return Return.error("腎翻囮啖");
		}
		
	}
}
最近下载更多
李亮  LV19 2023年3月6日
yunYUN123  LV1 2023年2月20日
543666826  LV33 2021年11月19日
wuhaigang  LV9 2021年10月31日
浮生如茶  LV8 2021年6月16日
hjjhhhh  LV4 2021年5月14日
小胡逗  LV6 2021年5月12日
daimaxiaobai777  LV1 2021年5月8日
写梦追逐  LV8 2021年3月28日
1587767925  LV7 2020年12月17日
最近浏览更多
fire1234  LV2 3月5日
uni-code_0123  LV1 2023年11月29日
 LV7 2023年8月21日
999999999qqq  LV2 2023年6月30日
gecongkai  LV8 2023年6月22日
shuidajiao 2023年6月18日
暂无贡献等级
3060025363  LV1 2023年6月13日
cunbie  LV4 2023年6月13日
1257592068  LV6 2023年6月13日
6389181  LV7 2023年5月31日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友