基于JSP的小区物业管理系统-java系统mysql数据源
开发环境:
Eclipse ,MySQL 5.1,JDK1.7,Tomcat 7
涉及技术点:
MVC模式、JavaWeb、JDBC、HTML、CSS、JQUERY、分页、等。
使用工具:
代码已经上传github,下载地址:https://github.com/21503882
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.servlet.ModelAndView;
import com.zsga.kbms.entity.Article;
import com.zsga.kbms.entity.User;
import com.zsga.kbms.lucene.ArticleIndex;
import com.zsga.kbms.service.ArticleService;
import com.zsga.kbms.service.CommentService;
import com.zsga.kbms.utils.StringUtil;
/**
* 文章Controller
* @author admin
*
*/
@Controller
@RequestMapping("/article")
public class ArticleController {
@Autowired
private ArticleService articleService;
@Autowired
private CommentService commentService;
//文章索引
private ArticleIndex articleIndex = new ArticleIndex();
/**
* 请求文章信息
* @param id
* @param request
* @ret