java个人博客系统源码_Java基于SSM的个人博客系统(源码 包含前后台)

@

系统简介

技术点:Java、JSP、SSM框架,实现了个人博客系统

用户角色分为:普通用户、管理员、系统管理员

功能:发博客、博客分类、博客删除、评论、博客管理、日志等

看完本博客,你可以得到:

1> 学会SSM框架,相当于一个学习例子,可以自己拿来改

2> 拥有自己的私人博客系统

系统运行截图

登录界面:

6f661859dbc25bfe49504e619de6612e.png

博客首页:

014a8701514872b65c889fc4a78f3552.png

博客列表:

5234abfec9a5bc05186e0a9baa724e5a.png

核心代码

一、业务逻辑层:

博客用户逻辑类:

Blogger

/* 1: */ package com.blog.service.impl;

/* 2: */

/* 3: */ import com.blog.dao.BloggerDao;

/* 4: */ import com.blog.entity.Blogger;

/* 5: */ import com.blog.service.BloggerService;

/* 6: */ import javax.annotation.Resource;

/* 7: */ import org.springframework.stereotype.Service;

/* 8: */

/* 9: */ @Service("bloggerService")

/* 10: */ public class BloggerServiceImpl

/* 11: */ implements BloggerService

/* 12: */ {

/* 13: */ @Resource

/* 14: */ private BloggerDao bloggerDao;

/* 15: */

/* 16: */ public Blogger find()

/* 17: */ {

/* 18:23 */ return this.bloggerDao.find();

/* 19: */ }

/* 20: */

/* 21: */ public Blogger getByUserName(String userName)

/* 22: */ {

/* 23:27 */ return this.bloggerDao.getByUserName(userName);

/* 24: */ }

/* 25: */

/* 26: */ public Integer update(Blogger blogger)

/* 27: */ {

/* 28:31 */ return this.bloggerDao.update(blogger);

/* 29: */ }

/* 30: */ }

/* Location: D:\classes\

* Qualified Name: com.blog.service.impl.BloggerServiceImpl

* JD-Core Version: 0.7.0.1

*/

博客类型逻辑类:

BlogType

/* 1: */ package com.blog.service.impl;

/* 2: */

/* 3: */ import com.blog.dao.BlogTypeDao;

/* 4: */ import com.blog.entity.BlogType;

/* 5: */ import com.blog.service.BlogTypeService;

/* 6: */ import java.util.List;

/* 7: */ import java.util.Map;

/* 8: */ import javax.annotation.Resource;

/* 9: */ import org.springframework.stereotype.Service;

/* 10: */

/* 11: */ @Service("blogTypeService")

/* 12: */ public class BlogTypeServiceImpl

/* 13: */ implements BlogTypeService

/* 14: */ {

/* 15: */ @Resource

/* 16: */ private BlogTypeDao blogTypeDao;

/* 17: */

/* 18: */ public List countList()

/* 19: */ {

/* 20:26 */ return this.blogTypeDao.countList();

/* 21: */ }

/* 22: */

/* 23: */ public List list(Map map)

/* 24: */ {

/* 25:30 */ return this.blogTypeDao.list(map);

/* 26: */ }

/* 27: */

/* 28: */ public Long getTotal(Map map)

/* 29: */ {

/* 30:34 */ return this.blogTypeDao.getTotal(map);

/* 31: */ }

/* 32: */

/* 33: */ public Integer add(BlogType blogType)

/* 34: */ {

/* 35:38 */ return this.blogTypeDao.add(blogType);

/* 36: */ }

/* 37: */

/* 38: */ public Integer update(BlogType blogType)

/* 39: */ {

/* 40:42 */ return this.blogTypeDao.update(blogType);

/* 41: */ }

/* 42: */

/* 43: */ public Integer delete(Integer id)

/* 44: */ {

/* 45:46 */ return this.blogTypeDao.delete(id);

/* 46: */ }

/* 47: */ }

/* Location: D:\classes\

* Qualified Name: com.blog.service.impl.BlogTypeServiceImpl

* JD-Core Version: 0.7.0.1

*/

评论逻辑类:

Comment

/* 1: */ package com.blog.service.impl;

/* 2: */

/* 3: */ import com.blog.dao.CommentDao;

/* 4: */ import com.blog.entity.Comment;

/* 5: */ import com.blog.service.CommentService;

/* 6: */ import java.util.List;

/* 7: */ import java.util.Map;

/* 8: */ import javax.annotation.Resource;

/* 9: */ import org.springframework.stereotype.Service;

/* 10: */

/* 11: */ @Service("commentService")

/* 12: */ public class CommentServiceImpl

/* 13: */ implements CommentService

/* 14: */ {

/* 15: */ @Resource

/* 16: */ private CommentDao commentDao;

/* 17: */

/* 18: */ public int add(Comment comment)

/* 19: */ {

/* 20:26 */ return this.commentDao.add(comment);

/* 21: */ }

/* 22: */

/* 23: */ public List list(Map map)

/* 24: */ {

/* 25:30 */ return this.commentDao.list(map);

/* 26: */ }

/* 27: */

/* 28: */ public Long getTotal(Map map)

/* 29: */ {

/* 30:34 */ return this.commentDao.getTotal(map);

/* 31: */ }

/* 32: */

/* 33: */ public Integer delet

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
个人博客系统源码下载个人博客系统源码下载 本项目基于ssh2+Oracle三大框架开发 项目需求概述 1.1. 概述 随着计算机技术的发展和普及,blog 得到了极大的发展。Blog,是 Weblog 的简称。blog 是一种新的生活方式、新的工作方式、新的学习方式和交流方式。本需求说明书的编写目的, 是为了描述本项目的需求背景,总结本项目需要完成的开发任务,从而便于系统分析人员和 开发人员在此基础上进行总体设计和详细设计,便于手册编写人员以此为指导编写用户手 册。 本需求说明书的预期读者为 SmartBlog 开发人员和测试人员。 1.2. 主要功能 SmartBlog 博客系统是一个简单的博客系统,实现部分功能。主要提供管理用户(博主) 能够在指定分类下发表日志、对日志进行编辑和删除等功能。一般用户能够浏览日志,对日 志进行评论。日志管理和显示都需要提供分页功能。主要的功能划分为:首页模块、日志评 论模块、登录模块、后台管理模块,以下是各个模块的功能介绍: 序号 模块名称 主要功能 1 首页模块 显示博客的 LOGO 信息和主菜单,包括首页的链接, 登录(已登录用户显示后台管理和退出) 分页页显示 Java 分类下日志 提供日志评论功能 2 日志评论模块 对文章进行评论和评论显示 3 用户登录模块 提供用户登录功能,随机生成验证码验证 4 后台管理模块 提供日志的查询、删除、修改、新增功能 提供分页功能 1.3. 运行环境 1. 软件环境 分类 名称 版本 语种 操作系统 Windows XP 简体中文 数据库平台 Oracle10g 简体中文 北京阿博泰克北大青鸟信息技术有限公司 应用平台 Tomcat5.5 简体中文 客户端软件 动漫阅读器 APK 简体中文 Java 开发工具 Eclipse3.4 以上 框架 Spring+Struts2+Hibernate3 2. 硬件环境 开发电脑 最低配置 推荐配置 CPU:P4 2.0G  CPU:P4 2.8G 以上 内存:1G 内存:2G

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值