src/com/xx/supermarket/controller/AdminController.java
(开头部分) 11KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
package com.xx.supermarket.controller;
import java.io.File;
import java.io.IOException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.apache.axis2.databinding.types.soapencoding.Array;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.multipart.commons.CommonsMultipartFile;
import com.xx.supermarket.base.BaseController;
import com.xx.supermarket.utils.JsonUtil2;
import com.xx.supermarket.utils.Pager;
import net.sf.json.JSONObject;
import java.util.*;
import com.xx.supermarket.entity.*;
import com.xx.supermarket.dao.*;
import com.xx.supermarket.service.*;
/**
* @ClassName:
* @Description:
* @author administrator
* @date 2015年12月24日 下午1:46:33 - 2017年02月28日 22时35分11秒
*/
@Controller
@RequestMapping("/admin")
public class AdminController extends BaseController {
/**
* 依赖注入 start dao/service/===
*/
@Autowired
private AdminService adminService;
// --------------------------------------- 华丽分割线 ------------------------------
/**
* 登陆以后进入首页
* @return
* @throws IOException
*/
@RequestMapping("/index.json")
@ResponseBody
public String index(HttpServletRequest request, HttpServletResponse response, HttpSession session ,Admin admin) throws IOException{
//查询该用户是否存在
Map<String, Object> map = getMap();
map.put("adminName",admin.getAdminName());
后面还有 314 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。