• 大小: 12.02MB
    文件类型: .rar
    金币: 2
    下载: 0 次
    发布日期: 2024-02-02
  • 语言: 其他
  • 标签:

资源简介

新闻管理系统集游客评论,管理员增删改查新闻和评论于一体的,最新的ssm框架写成,适合新手学习。

资源截图

代码片段和文件信息

package com.news.controller;

import java.util.List;

import javax.annotation.Resource;

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.ResponseBody;

import com.news.pojo.Comments;
import com.news.service.CommentsService;
import com.news.service.NewsService;
import com.news.service.TopicService;

@Controller
@RequestMapping(“/comments“)
public class CommentsCotroller {
@Resource
private NewsService newsService;
@Resource
private TopicService topicService;
@Resource
private CommentsService commentsService;

@RequestMapping(“/add“)
@ResponseBody
public String add(Comments comments){
int num=commentsService.add(comments);
System.out.println(num);

return “true“;
}
@RequestMapping(“/findComments“)
@ResponseBody
public List findComments(Integer nid){
List list = commentsService.findAllComments(nid);

return list;

}
@RequestMapping(“/delete“)
@ResponseBody
public String delete(Integer cid){
int num = commentsService.delete(cid);
System.out.println(num);
return “true“;


}

}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       3486  2018-10-26 11:29  NewsManagerSystem\.classpath

     文件        324  2018-10-26 09:02  NewsManagerSystem\.mymetadata

     文件       1760  2013-04-23 09:55  NewsManagerSystem\.project

     文件        500  2013-04-23 09:45  NewsManagerSystem\.settings\.jsdtscope

     文件        389  2018-10-28 10:58  NewsManagerSystem\.settings\org.eclipse.core.resources.prefs

     文件        395  2013-04-23 09:45  NewsManagerSystem\.settings\org.eclipse.jdt.core.prefs

     文件        566  2018-10-26 09:25  NewsManagerSystem\.settings\org.eclipse.wst.common.component

     文件        252  2013-04-23 09:45  NewsManagerSystem\.settings\org.eclipse.wst.common.project.facet.core.xml

     文件         49  2013-04-23 09:45  NewsManagerSystem\.settings\org.eclipse.wst.jsdt.ui.superType.container

     文件          6  2013-04-23 09:45  NewsManagerSystem\.settings\org.eclipse.wst.jsdt.ui.superType.name

     文件       2698  2018-10-26 22:38  NewsManagerSystem\config\applicationContext.xml

     文件        158  2018-10-26 09:59  NewsManagerSystem\config\jdbc.properties

     文件       2619  2018-10-19 09:07  NewsManagerSystem\config\log4j.properties

     文件       1711  2018-10-27 21:27  NewsManagerSystem\config\springmvc-servlet.xml

     文件          0  2018-10-26 11:32  NewsManagerSystem\log\tibet.log

     文件       1279  2018-10-29 17:19  NewsManagerSystem\src\com\news\controller\CommentsCotroller.java

     文件       3790  2018-10-29 11:23  NewsManagerSystem\src\com\news\controller\NewsController.java

     文件       1714  2018-10-28 10:35  NewsManagerSystem\src\com\news\controller\TopicController.java

     文件       1053  2018-10-26 14:37  NewsManagerSystem\src\com\news\controller\UserController.java

     文件        785  2018-10-27 21:27  NewsManagerSystem\src\com\news\converter\DateConverter.java

     文件        298  2018-10-29 11:07  NewsManagerSystem\src\com\news\mapper\CommentsMapper.java

     文件       1260  2018-10-29 11:16  NewsManagerSystem\src\com\news\mapper\CommentsMapper.xml

     文件        393  2018-10-28 09:39  NewsManagerSystem\src\com\news\mapper\NewsMapper.java

     文件       1545  2018-10-28 10:38  NewsManagerSystem\src\com\news\mapper\NewsMapper.xml

     文件        374  2018-10-28 10:29  NewsManagerSystem\src\com\news\mapper\TopicMapper.java

     文件       1004  2018-10-28 10:30  NewsManagerSystem\src\com\news\mapper\TopicMapper.xml

     文件        227  2018-10-26 15:14  NewsManagerSystem\src\com\news\mapper\UserMapper.java

     文件        575  2018-10-26 11:32  NewsManagerSystem\src\com\news\mapper\UserMapper.xml

     文件       1744  2018-10-29 16:16  NewsManagerSystem\src\com\news\pojo\Comments.java

     文件       2828  2018-10-27 21:36  NewsManagerSystem\src\com\news\pojo\News.java

............此处省略173个文件信息

评论

共有 条评论