src/com/jssf/tesco/action/LoginAction.java

(开头部分) 10KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

package com.jssf.tesco.action;

import java.io.File;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpSession;
import org.apache.struts2.ServletActionContext;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import com.jssf.tesco.model.Item;
import com.jssf.tesco.model.Manage;
import com.jssf.tesco.model.Notice;
import com.jssf.tesco.model.User;
import com.jssf.tesco.service.CommentService;
import com.jssf.tesco.service.ItemService;
import com.jssf.tesco.service.ManageService;
import com.jssf.tesco.service.NonationService;
import com.jssf.tesco.service.NoticeService;
import com.jssf.tesco.service.OrderService;
import com.jssf.tesco.service.UserService;
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;

@Controller("loginAction")
@Scope("prototype")
public class LoginAction extends ActionSupport {

//============依赖注入start================
		@Autowired
		private CommentService commentService;//评论
		@Autowired
		private ItemService itemService;//商品
		@Autowired
		private ManageService manageService;//管理
		@Autowired
		private NonationService nonationService;//捐赠物品
		@Autowired
		private NoticeService noticeService;//公告
		@Autowired
		private OrderService orderService;//订单
		@Autowired
		private UserService userService;//用户
		//===========依赖注入end==================
		
		//-------------------------华丽分割线---------------------------------------------
		
		//============自定义参数start=============
		   private String userName;
		   private String passWord;
		   private int role;
		   private Integer keyword1;
		   private Integer keyword2;
		
		public Integer getKeyword1() {
			return keyword1;
		}
		public void setKeyword1(Integer keyword1) {
后面还有 255 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。