Giter Club home page Giter Club logo

blog-parent's Introduction

blog

基于springboot + vue 的前后端分离博客

写在前面

鉴于本项目难得被人关注,更新一下readme

本项目为springboot后端

vue前端仓库地址:https://github.com/Raxcl/blog-app

本项目为demo作品,所以暂不考虑维护,不过功能点还是很齐全的,

开发及部署上线教程:https://blog.csdn.net/RAXCL/article/details/121116982

喜欢的小伙伴可以fork参考或者点点star

项目迁移

考虑到功能性和美观性,本博客在参考了大量作者的博客项目和代码后,重构完成

重构后项目与本项目区别较大

重构后仓库地址:https://github.com/Raxcl/RBlog

重构后已成功部署上线,

线上博客:https://raxcl.cn

简介

技术选型: springboot + vue 参照码神之路写的博客系统后端,后续会不断更新和完善

bug点

  1. 发布文章之后,首页没有显示刚发布的文章
  2. 写文章时,图片无法显示
  3. 修数据
  4. 博客时间是8小时以前
  5. 博客名字不符合

待优化项

  1. 文章可以放入es当中,便于后续中文分词搜索
  2. 评论数据,可以考虑放入mongodb当中(可以增加图片评论)
  3. 阅读数和评论数, 考虑把阅读数和评论数 增加的时候放入redis incr 自增, 使用定时任务 定时把数据固话到数据库当中
  4. 为了加快访问速度,部署的时候,可以把图片,js,css等放入七牛云存储中,加快网站访问速度
  5. 优化博客显示界面

管理平台待优化点: 添加角色,用户拥有多个角色,一个角色拥有多个权限

总结:

  1. jwt + redis token令牌的登录方式,访问认证速度快,session共享,安全性 redis做了令牌和用户信息的对应管理, 1. 进一步增加了安全性 2, 登录用户做了缓存 3. 灵活控制用户的过期(续期,提掉线等)
  2. threadLocal 使用了保存用户信息, 请求的线程之内, 可以随时获取登录的用户,做了线程隔离
  3. 在使用完ThreadLocal之后,做了value的删除,防止了内存泄漏
  4. 线程安全-update table set value = newValue where id=1 and value = oldValue
  5. 线程池,应用非常广,面试7个核心参数(对当前的主业务流程无影响的操作,放入线程池执行) 1.登录,记录日志
  6. 权限系统 重点内容
  7. 统一日志记录,统一缓存处理

blog-parent's People

Contributors

raxcl avatar

Stargazers

 avatar  avatar  avatar aibohang avatar WangBotao avatar qi avatar Grox avatar lipZ avatar

Watchers

一只上进的皮皮虾 avatar  avatar

Forkers

lijianan16

blog-parent's Issues

同学,您这个项目引入了141个开源组件,存在13个漏洞,辛苦升级一下

检测到 Raxcl/blog-parent 一共引入了141个开源组件,存在13个漏洞

漏洞标题:netty 安全漏洞
缺陷组件:io.netty:[email protected]
漏洞编号:CVE-2021-37137
漏洞描述:Netty是Netty社区的一款非阻塞I/O客户端-服务器框架,它主要用于开发Java网络应用程序,如协议服务器和客户端等。
netty存在安全漏洞,该漏洞源于Snappy frame decoder函数不限制块长度,这可能会导致过度内存使用。
影响范围:(∞, 4.1.68.Final)
最小修复版本:4.1.68.Final
缺陷组件引入路径:com.raxcl:[email protected]>org.springframework.boot:[email protected]>io.lettuce:[email protected]>io.netty:[email protected]>io.netty:[email protected]

另外还有13个漏洞,详细报告:https://mofeisec.com/jr?p=i34e71

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.