• 大小: 1.62MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-01-05
  • 语言: Java
  • 标签: jsp  servle  mysql  

资源简介

可当做一个简单的项目实例,包含数据库文件,有基本的增删改查,对于初学者来说简单易懂!

资源截图

代码片段和文件信息

package pers.wsj.news.bean;

public class News {
private String nid;//新闻编号
private User user;//发布人
private NewsType newsType;//新闻类别
private String title;//标题
private String author;//作者
private String keywords;//关键字
private String source;//来源
private String content;//内容
private String createTime;//创建时间
private int click;//点击次数
private int state;//审核状态 0待审核1已发布2已废除
private int del;//删除状态0.. 1已删除
public String getNid() {
return nid;
}
public void setNid(String nid) {
this.nid = nid;
}
public User getUser() {
return user;
}
public void setUser(User user) {
this.user = user;
}
public NewsType getNewsType() {
return newsType;
}
public void setNewsType(NewsType newsType) {
this.newsType = newsType;
}
public String gettitle() {

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-03-16 10:47  Project_News\
     文件         529  2018-09-04 09:03  Project_News\.classpath
     目录           0  2019-03-16 10:55  Project_News\.myeclipse\
     文件         309  2018-09-04 09:03  Project_News\.mymetadata
     文件        1755  2018-09-04 09:05  Project_News\.project
     目录           0  2019-03-16 10:47  Project_News\.settings\
     文件         500  2018-09-04 09:03  Project_News\.settings\.jsdtscope
     文件         364  2018-09-04 09:03  Project_News\.settings\org.eclipse.jdt.core.prefs
     文件         474  2018-09-04 09:03  Project_News\.settings\org.eclipse.wst.common.component
     文件         252  2018-09-04 09:03  Project_News\.settings\org.eclipse.wst.common.project.facet.core.xml
     文件          49  2018-09-04 09:03  Project_News\.settings\org.eclipse.wst.jsdt.ui.superType.container
     文件           6  2018-09-04 09:03  Project_News\.settings\org.eclipse.wst.jsdt.ui.superType.name
     目录           0  2019-03-16 10:47  Project_News\WebRoot\
     目录           0  2019-03-16 10:47  Project_News\WebRoot\meta-INF\
     文件          36  2018-09-04 09:03  Project_News\WebRoot\meta-INF\MANIFEST.MF
     目录           0  2019-03-16 10:47  Project_News\WebRoot\WEB-INF\
     目录           0  2019-03-16 10:47  Project_News\WebRoot\WEB-INF\classes\
     文件         102  2018-09-04 09:26  Project_News\WebRoot\WEB-INF\classes\db.properties
     目录           0  2019-03-16 10:47  Project_News\WebRoot\WEB-INF\classes\pers\
     目录           0  2019-03-16 10:47  Project_News\WebRoot\WEB-INF\classes\pers\wsj\
     目录           0  2019-03-16 10:47  Project_News\WebRoot\WEB-INF\classes\pers\wsj\news\
     目录           0  2019-03-16 10:47  Project_News\WebRoot\WEB-INF\classes\pers\wsj\news\bean\
     文件        2800  2018-12-25 20:48  Project_News\WebRoot\WEB-INF\classes\pers\wsj\news\bean\News.class
     文件         730  2018-12-25 20:48  Project_News\WebRoot\WEB-INF\classes\pers\wsj\news\bean\NewsType.class
     文件        1101  2018-12-25 20:48  Project_News\WebRoot\WEB-INF\classes\pers\wsj\news\bean\User.class
     目录           0  2019-03-16 10:47  Project_News\WebRoot\WEB-INF\classes\pers\wsj\news\dao\
     文件        6674  2018-12-25 20:48  Project_News\WebRoot\WEB-INF\classes\pers\wsj\news\dao\NewsDao.class
     文件        1843  2018-12-25 20:48  Project_News\WebRoot\WEB-INF\classes\pers\wsj\news\dao\NewsTypeDao.class
     文件        2736  2018-12-25 20:48  Project_News\WebRoot\WEB-INF\classes\pers\wsj\news\dao\UserDao.class
     目录           0  2019-03-16 10:47  Project_News\WebRoot\WEB-INF\classes\pers\wsj\news\service\
     文件        1786  2018-12-25 20:48  Project_News\WebRoot\WEB-INF\classes\pers\wsj\news\service\NewsService.class
............此处省略107个文件信息

评论

共有 条评论