# zcblog
**Repository Path**: zhangc1030/zcblog
## Basic Information
- **Project Name**: zcblog
- **Description**: 系统总结学习springboot技术栈
搭建个人blog
- **Primary Language**: Java
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 1
- **Forks**: 0
- **Created**: 2021-08-15
- **Last Updated**: 2024-04-12
## Categories & Tags
**Categories**: Uncategorized
**Tags**: SpringBoot, blog, thymeleaf, layui, MySQL
## README
# zcblog
#### 介绍
系统学习springboot技术栈
搭建个人blog
#### 参与贡献
1. Fork 本仓库
2. 新建 Feat_xxx 分支
3. 提交代码
4. 新建 Pull Request
# zcblog plan
# 1、目标
代码初步架构确定,熟悉springboot各种技术栈
## 1.1 mybatis
## 1.2 Spring Security OAuth 2.0:身份验证、接口授权
> sa-token
> Spring Security & JWT
jwt的非对称加密是通过私钥签名,公钥验签的,因为服务端没有存储,jwt一旦签发,只要没过期就可以一直使用的,除非你把jwt也存redis里面再进行一次拦截判断
## 1.3 统一异常处理
> ~~SpringBoot MessageSource 国际化~~
> ~~统一异常抛出方式 validator.throw~~
## 1.4 api接口限流
## 1.5 mq
## 1.6 数据源Druid
## 1.7 xxl-job
远期规划
> 基于内存scm(统一配置管理)zookeeper
> spring cloud、nacos
> 前端分离出去,独立开发,ngnix部署
# 2、项目结构
zcblog-pom--------------骨架工程
zcblog-base--------------基础模块:公共工具、utils、helper、公共service
zcblog-admin-service----PC管理端service
zcblog-admin-web--------PC管理端web
zcblog-pc-web--------------PC显示端web(目前未单独)
# 3、问题记录
idea:2019.3.3
sa-token:http://sa-token.dev33.cn/doc/index.html#/oauth2/oauth2-dev
auth2.0 :https://www.cnblogs.com/kuangdaoyizhimei/p/14250374.html#_caption_1
https://blog.kdyzm.cn/tag/oauth/
## springboot 默认使用logback日志
https://blog.csdn.net/hkdhkdhkd/article/details/113869035
多module 配置文件问题
https://blog.csdn.net/u012988901/article/details/83024406
> ## idea插件
free mybatis plugin
> spring security
https://www.callicoder.com/spring-boot-spring-security-jwt-mysql-react-app-part-2/
https://blog.csdn.net/zzzgd_666/article/details/96444829
http://www.imooc.com/wiki/securitylesson 慕课网教程
> spring cloud
http://www.zimug.com/search/springcloud
https://www.cnblogs.com/FullStackProgrammer/p/15109349.html
Spring Security OAuth2.0
一枝梅:https://www.cnblogs.com/kuangdaoyizhimei/p/14346275.html
# 4、参考开源
gitegg
OpenFeign: 微服务架构下服务之间的调用的解决方案 + Ribbon实现负载均衡/高可用重试机制
高性能的key-value缓存数据库:Redis + RedissonClient + RedisTemplate
发现好物
https://valine.js.org/quickstart.html
--生成目录
https://blog.csdn.net/qq_43707531/article/details/104733747
# 5、知识积累
## springboot jar linux 运行
https://blog.csdn.net/sizaif/article/details/106106437
1、如果引入了外部文件,像upload上传图片的功能, 需要设置目录为linux目录
一般在windows上开发,windows和linux不一样
2、忽略掉test测试,防止发布到线上出现各种问题
https://springhow.com/start-stop-scripts-for-spring-boot-applications/
https://springhow.com/installing-spring-boot-applications-as-linux-service/
springboot docker
3、git
撤销创建仓库后第一次提交的 commit
git update-ref -d HEAD
mybatis-plus.configuration.log-impl=org.apache.ibatis.logging.stdout.StdOutImpl