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

(开头部分) 5KB

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

package com.jssf.tesco.action;

import java.io.File;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

import javax.servlet.http.HttpServletResponse;

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.Comment;
import com.jssf.tesco.model.Order;
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.jssf.tesco.utils.Pager;
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ModelDriven;

import net.sf.json.JSONObject;
/**
 * 评论
 * @author
 *
 */
@Controller("commentAction")
@Scope("prototype")
public class CommentAction extends ActionSupport implements ModelDriven<Comment>{
    private Comment comment;
	@Override
	public Comment getModel() {
		if(comment==null) comment = new Comment();
		return comment;	
	}
	//============依赖注入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;//用户
后面还有 121 行代码,购买后查看完整代码

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

AI 解读 AI

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

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