• 大小: 6.37MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-08-12
  • 语言: Java
  • 标签: mvc  jsp  h2  servlet  

资源简介

我的个人网站是以Tomcat为服务器,基于Model 1(JSP + Java Bean+servlet+mvc)的方式实现,数据库采用H2数据库。网站主要浏览文章,并且实现了增、删、改、查、分页等功能。 --------------------- 作者:qq_38275941 来源:CSDN 原文:https://blog.csdn.net/qq_38275941/article/details/85301757 版权声明:本文为博主原创文章,转载请附上博文链接!

资源截图

代码片段和文件信息

package bean;
//文章实体JavaBean类
public class ArticleBean {
    private int id;             //文章id
    private String userName;    //发布人
    private String title;       //文章标题
    private String content;     //文章内容
    private long submitTime;    //发布时间
    private int watchNum;       //浏览数
    private int praiseNum;      //点赞数
    private int commentNum;     //评论数

    public ArticleBean(int id String title String content long submitTime int watchNum int praiseNumint commentNum String userName) {
        this.id = id;
        this.userName = userName;
        this.title = title;
        this.content = content;
        this.submitTime = submitTime;
        this.watchNum = watchNum;
        this.commentNum = commentNum;
        this.praiseNum = praiseNum;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String gettitle() {
        return title;
    }

    public void settitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public long getSubmitTime() {
        return submitTime;
    }

    public void setSubmitTime(long submitTime) {
        this.submitTime = submitTime;
    }

    public int getWatchNum() {
        return watchNum;
    }

    public void setWatchNum(int watchNum) {
        this.watchNum = watchNum;
    }

    public int getPraiseNum() {
        return praiseNum;
    }

    public void setPraiseNum(int praiseNum) {
        this.praiseNum = praiseNum;
    }

    public int getCommentNum() {
        return commentNum;
    }

    public void setCommentNum(int commentNum) {
        this.commentNum = commentNum;
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-12-10 20:46  16201533\
     文件         791  2018-12-10 21:05  16201533\.classpath
     文件         908  2018-12-14 16:11  16201533\.project
     目录           0  2018-12-10 20:47  16201533\.settings\
     文件         567  2018-12-10 20:47  16201533\.settings\.jsdtscope
     文件         364  2018-12-10 20:46  16201533\.settings\org.eclipse.jdt.core.prefs
     文件         476  2018-12-14 16:11  16201533\.settings\org.eclipse.wst.common.component
     文件         305  2018-12-10 20:47  16201533\.settings\org.eclipse.wst.common.project.facet.core.xml
     文件          49  2018-12-10 20:47  16201533\.settings\org.eclipse.wst.jsdt.ui.superType.container
     文件           6  2018-12-10 20:47  16201533\.settings\org.eclipse.wst.jsdt.ui.superType.name
     目录           0  2018-12-10 20:46  16201533\build\
     目录           0  2018-12-22 14:54  16201533\build\classes\
     目录           0  2018-12-22 14:54  16201533\build\classes\bean\
     文件        2133  2018-12-22 14:54  16201533\build\classes\bean\ArticleBean.class
     文件        1495  2018-12-22 14:54  16201533\build\classes\bean\CommentBean.class
     文件        1031  2018-12-22 14:54  16201533\build\classes\bean\UserBean.class
     目录           0  2018-12-22 14:54  16201533\build\classes\dao\
     文件        5863  2018-12-22 14:54  16201533\build\classes\dao\ArticleDao.class
     文件        4142  2018-12-22 14:54  16201533\build\classes\dao\CommentDao.class
     文件        3177  2018-12-22 14:54  16201533\build\classes\dao\UserDao.class
     目录           0  2018-12-22 14:54  16201533\build\classes\servlet\
     目录           0  2018-12-22 14:54  16201533\build\classes\servlet\article\
     文件        1601  2018-12-22 14:54  16201533\build\classes\servlet\article\AddServlet.class
     文件        1578  2018-12-22 14:54  16201533\build\classes\servlet\article\DeleteServlet.class
     文件        1918  2018-12-22 14:54  16201533\build\classes\servlet\article\DetailServlet.class
     文件        1866  2018-12-22 14:54  16201533\build\classes\servlet\article\NextPageServlet.class
     文件        1776  2018-12-22 14:54  16201533\build\classes\servlet\article\PraiseServlet.class
     文件        1592  2018-12-22 14:54  16201533\build\classes\servlet\article\SearchServlet.class
     文件        2814  2018-12-22 14:54  16201533\build\classes\servlet\article\UpdateServlet.class
     目录           0  2018-12-22 14:54  16201533\build\classes\servlet\comment\
     文件        2662  2018-12-22 14:54  16201533\build\classes\servlet\comment\InsertCom.class
............此处省略75个文件信息

评论

共有 条评论