首页>代码>ssm+easyui实现学生信息增删改查及分页查询,搜索简单实例>/ssm_easyui/src/main/java/com/liu/controller/TeachersController.java
package com.liu.controller;


import javax.servlet.http.HttpSession;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.liu.pojo.Teachers;
import com.liu.service.TeachersService;


@Controller
public class TeachersController {
	@Autowired
	private TeachersService us;
	
	@RequestMapping("login")
	@ResponseBody
	public String login(Teachers user,HttpSession session){
	Teachers users=us.login(user);
		if(users!=null) {
			session.setAttribute("us", users);
			return "1";
		}else {
			return "0";
		}
	}
}
最近下载更多
沈从文  LV2 1月1日
aaa5849310  LV25 2022年3月10日
543666826  LV33 2021年11月20日
Gxb001020  LV10 2021年6月18日
酒后少年  LV6 2021年5月15日
liuxie  LV12 2021年4月16日
hdf999  LV12 2021年4月3日
张先生1121  LV3 2021年1月11日
snowing_for  LV8 2020年9月16日
xiao_zheng  LV7 2020年9月15日
最近浏览更多
沈从文  LV2 2023年12月31日
微信网友_6802139027345408  LV2 2023年12月31日
taoshen95  LV14 2023年12月25日
wwwww816  LV3 2023年12月19日
wanglinddad  LV54 2023年12月19日
张朕朕  LV3 2023年9月8日
微信网友_6591303770624000  LV1 2023年8月4日
gecongkai  LV8 2023年6月22日
xiang123xiang  LV1 2023年6月18日
c469893928  LV2 2023年6月10日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友