Bootstrap

A097基于SpringBoot实现的社区博客管理系统

系统介绍
基于SpringBoot+Vue实现的社区博客管理系统设计了超级管理员、系统观察者、用户三种角色,超级管理员可对用户授权,具体实现的功能如下
•    文章采用了比较火的Markdown编辑器。
•    系统集成了邮件发送功能。
•    系统可以自定义友情链接。
•    系统主页推荐文章 / 热门文章(展示最近n天用户访问量最多的10篇文章)。
•    集成了百度IP定位API,记录用户的登录地址及IP归属地展示。
•    用户发布博客附带文件实现了目录文件结构的树形展示。
•    系统注册新用户实行邮箱绑定制、单个邮箱注册账号不得超过3个。
•    系统实行积分制,下载资源需要扣除相应积分,同样被下载资源的用户会得到一定积分的奖励。
•    用户可以通过每日签到获取免费积分,单日签到次数不超过1次。
•    系统尽可能实现可配置,前台信息管理端可自定义配置。
•    系统实现了对博客的点赞、收藏、评论等功能,也可对自己心仪的博主进行打赏。
•    系统实现了匿名预览功能,匿名账号拥有系统最高查看权限(除DMML操作,该账号只可查看、无法进行增删改操作、不会对系统造成影响)
•    前后端通过token进行交互,token30分钟内持续操作无感知续时
技术选型
开发工具:idea2020.3+Webstorm2020.3
运行环境:jdk1.8+maven3.6.0+MySQL5.7+nodejs14.21.3+Redis(此配置为小白调试所用,仅供参考)
服务端技术:Springboot+Mybatis-plus+SpringSecurity+邮件发送+支付宝支付
前端技术:html+css+Vue+axios+Element-UI+echarts+vue-element-admin
成果展示
前台系统
前台首页
 
登录页
 
文章详情页
 
举报文章
 
文章发布页

个人中心->个人资料


个人中心-个性化设置
 
管理员登录页
 
管理员首页
 
用户管理
 
定时任务管理
 
首页管理
 
博客审核
 
举报管理
 
日志管理
 
交易类型管理
 
代码展示
package com.cxs.controller;

import com.cxs.base.BaseResult;
import com.cxs.dto.UserLoginDTO;
import com.cxs.service.BaseService;
import com.cxs.service.UserService;
import com.google.code.kaptcha.Producer;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.imageio.ImageIO;
import javax.servlet.ServletOutputStream;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.awt.image.BufferedImage;
import java.io.IOException;

/*
 * @Project:cxs-currency-sys-server
 * @Author:cxs
 * @Motto:放下杂念,只为迎接明天更好的自己
 * */
@RestController
@RequestMapping("/auth")
@Api(tags = "用户认证控制器")
public class AuthController {
    @Autowired
    private UserService userService;

    @Autowired
    private Producer captchaProducer;

    @Autowired
    private BaseService baseService;

    @PostMapping("/login")
    @ApiOperation("用户登录认证处理器")
    public BaseResult login(@RequestBody @Validated UserLoginDTO dto, HttpServletRequest request, HttpServletResponse response){
        BaseResult result = BaseResult.ok();
        userService.login(dto, request, response, result);
        return result;
    }

    @PostMapping("/admin/login")
    @ApiOperation("管理员登录认证处理器")
    public BaseResult adminLogin(@RequestBody @Validated UserLoginDTO dto, HttpServletRequest request){
        BaseResult result = BaseResult.ok();
        userService.adminLogin(dto, request, result);
        return result;
    }

    @PostMapping("/checkToken")
    @ApiOperation("用户令牌检查处理器")
    public BaseResult checkToken(HttpServletRequest request){
        BaseResult result = BaseResult.ok();
        userService.checkToken(request, result);
        return result;
    }

    @GetMapping("/getValidateCode")
    @ApiOperation("获取验证码处理器")
    public BaseResult getValidateCode(HttpServletRequest request){
        BaseResult result = BaseResult.ok();
        baseService.getValidateCode(result);
        return result;
    }
}

账号地址及其他说明
1、地址说明
前台首页:http://localhost:3000/
管理端登录页:http://localhost:9527
系统集成接口文档地址:http://localhost:2022/doc.html
2、账号说明
管理员:admin/123456
用户:user/1234567890!
3、目录结构展示
 image-20241028000855019
配套文档:
 image-20241027225703444
4、项目结构展示
 image-20241028000140283
5、以上系统源码来源于互联网,经过整理与调试,确保能正常运行!
6、制作不易,点赞、在看、分享再走吧,您的支持永远是我最大的动力!
7、运行步骤
 

;