资源简介

基于SSM 框架实现的个人博客系统,Java语言,MySQL数据库,初中级水平,适合作为毕业设计或者就业项目

资源截图

代码片段和文件信息

package com.debug.steadyjack.component;

import java.util.List;

import javax.annotation.Resource;
import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;

import org.slf4j.LoggerFactory;
import org.slf4j.Logger;
import org.springframework.stereotype.Service;
import org.springframework.web.servlet.support.RequestContextUtils;

import com.debug.steadyjack.entity.Blog;
import com.debug.steadyjack.entity.BlogType;
import com.debug.steadyjack.entity.Blogger;
import com.debug.steadyjack.entity.link;
import com.debug.steadyjack.service.BlogService;
import com.debug.steadyjack.service.BlogTypeService;
import com.debug.steadyjack.service.BloggerService;
import com.debug.steadyjack.service.linkService;

@Service(“commonService“)
public class CommonService {

private static final Logger log=LoggerFactory.getLogger(CommonService.class);

@Resource
private BloggerService bloggerService;

@Resource
private BlogTypeService blogTypeService;

@Resource
private BlogService blogService;

@Resource
private linkService linkService;

public void commonRefreshApplicationBeanInfo(HttpServletRequest request) {
try {
//获取上下文应用程序:javaweb页面作用域-application
ServletContext application=RequestContextUtils.getWebApplicationContext(request).getServletContext();

//查询博主信息
Blogger blogger=bloggerService.findBlogger();
blogger.setPassword(null);
application.setAttribute(“blogger“ blogger);

//查询博客类别以及博客的数量
List blogTypeCountList=blogTypeService.countList(); 
application.setAttribute(“blogTypeCountList“ blogTypeCountList);

//根据日期分组查询博客
List blogCountList=blogService.countList(); 
application.setAttribute(“blogCountList“ blogCountList);

//获取所有友情链接
Listnk> linkList=linkService.list(null); 
application.setAttribute(“linkList“ linkList);
} catch (Exception e) {
log.error(“通用的刷新系统缓存 发生异常: “e.fillInStackTrace());
}
}
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-03-18 13:44  SSM_Blog\
     文件         814  2019-03-18 09:14  SSM_Blog\.classpath
     文件        1041  2018-08-04 20:33  SSM_Blog\.project
     目录           0  2019-03-18 13:42  SSM_Blog\.settings\
     文件         503  2018-08-04 20:33  SSM_Blog\.settings\.jsdtscope
     文件         224  2019-03-18 09:21  SSM_Blog\.settings\org.eclipse.core.resources.prefs
     文件         364  2018-08-04 20:33  SSM_Blog\.settings\org.eclipse.jdt.core.prefs
     文件         551  2018-08-09 22:02  SSM_Blog\.settings\org.eclipse.wst.common.component
     文件         345  2018-08-04 20:33  SSM_Blog\.settings\org.eclipse.wst.common.project.facet.core.xml
     文件          49  2018-08-04 20:33  SSM_Blog\.settings\org.eclipse.wst.jsdt.ui.superType.container
     文件           6  2018-08-04 20:33  SSM_Blog\.settings\org.eclipse.wst.jsdt.ui.superType.name
     目录           0  2019-03-18 13:42  SSM_Blog\build\
     目录           0  2019-03-18 13:42  SSM_Blog\build\classes\
     文件          33  2018-08-10 12:43  SSM_Blog\build\classes\application.properties
     文件        1588  2018-08-15 22:39  SSM_Blog\build\classes\applicationContext-scheduler.xml
     文件        5942  2018-08-17 16:04  SSM_Blog\build\classes\applicationContext-spring.xml
     目录           0  2019-03-18 13:42  SSM_Blog\build\classes\com\
     目录           0  2019-03-18 13:42  SSM_Blog\build\classes\com\debug\
     目录           0  2019-03-18 13:42  SSM_Blog\build\classes\com\debug\steadyjack\
     目录           0  2019-03-18 13:42  SSM_Blog\build\classes\com\debug\steadyjack\component\
     文件        3016  2019-03-18 13:37  SSM_Blog\build\classes\com\debug\steadyjack\component\CommonService.class
     目录           0  2019-03-18 13:42  SSM_Blog\build\classes\com\debug\steadyjack\controller\
     目录           0  2019-03-18 13:42  SSM_Blog\build\classes\com\debug\steadyjack\controller\admin\
     文件        7456  2019-03-18 13:37  SSM_Blog\build\classes\com\debug\steadyjack\controller\admin\BlogAdminController.class
     文件        6080  2019-03-18 13:37  SSM_Blog\build\classes\com\debug\steadyjack\controller\admin\BloggerAdminController.class
     文件        5080  2019-03-18 13:37  SSM_Blog\build\classes\com\debug\steadyjack\controller\admin\BlogTypeAdminController.class
     文件        5236  2019-03-18 13:37  SSM_Blog\build\classes\com\debug\steadyjack\controller\admin\CommentAdminController.class
     文件        1281  2019-03-18 13:37  SSM_Blog\build\classes\com\debug\steadyjack\controller\admin\DateJsonValueProcessor.class
     文件        4710  2019-03-18 13:37  SSM_Blog\build\classes\com\debug\steadyjack\controller\admin\linkAdminController.class
     文件        2506  2019-03-18 13:37  SSM_Blog\build\classes\com\debug\steadyjack\controller\admin\SystemAdminController.class
     文件        7223  2019-03-18 13:37  SSM_Blog\build\classes\com\debug\steadyjack\controller\BlogController.class
............此处省略1775个文件信息

评论

共有 条评论