Forum
Forum(社区&论坛),分布式项目。由于毕设需要,正在逐渐集成即时通讯功能(视频弹幕和在线聊天)。希望各位大佬可以一起贡献代码,一起完善这个凝聚了我很多心血和时间的开源作品!该项目也是自己学习用的,关于项目的任何问题欢迎提issues和pr!如果不会用参与开源仓库的也可以拿我的仓库练练手,因为我也没试过,哈哈哈。演示地址外网IP无法访问,请关闭梯子
Install / Use
/learn @passerbyYSQ/ForumREADME
CI/CD
在master分支commit或者通过pr合并代码到master分支,只要标题不以draft开头,就会触发CI/CD流水线,自动编译和打包,部署到演示服务器
idea设置
- 设置自动去除无效导包
- 安装lombok插件
- MyBatisX插件
- MyBatis Generator插件
坑
- PageHelper联表查询分页时total错误
- Controller类上加@Validated和shiro的注解冲突:https://zhuanlan.zhihu.com/p/143126919
编码注意事项
- 注意代码分层,不要将过多逻辑堆积到controller层
- cotroller:参数接收和判断,结果返回
- service:核心业务逻辑
- dao:数据访问层
- 注意写注释
- 常用的idea快捷键
- 格式化代码快捷键:ctrl + L
- 查看类中所有方法:ctrl + f12
- 大小写转换:ctrl + shift + u
- 查看继承树:选中类名,ctrl + h
- 跳转到实现类:ctrl + 鼠标左键
- 查看类图:选中类名,ctrl + alt + u
- 追踪源码,光标后退和前进:ctrl + alt + 左箭头 | 右箭头
- 重写方法:ctrl + o
- surround with: ctrl + alt + t
- generate:alt + insert
- 重命名所有引用的变量:shift + f6
- 删除一行:ctrl + y
- 全局替换:ctrl + shift + r
- 全局搜索:ctrl + shift + f,需要关闭win10默认的快捷键
- 【新增】代码中不要使用System.out.println。使用lombok提供的@slf注解,打印调试日志
第三方类库使用
- tk.mapper:https://github.com/abel533/Mapper/
- 后端分页插件PageHelper:https://github.com/pagehelper/Mybatis-PageHelper
- 模板引擎thymeleaf中文文档
- 前端树形表格组件treetable-lay:https://gitee.com/ele-admin/treetable-lay
- Hibernate Validator中文文档:http://docs.jboss.org/hibernate/validator/4.2/reference/zh-CN/html/validator-usingvalidator.html
- layui官方文档:https://www.layui.com/doc/
- jquery zTree官方文档:http://www.treejs.cn/v3/main.php#_zTreeInfo
-
- 后台管理静态资源easy-web-iframe:https://github.com/lianxiansen/easy-web-iframe
- 开发文档:https://www.kancloud.cn/sansui/easyweb/#/catalog
- 论坛前台静态资源fly:https://github.com/layui/fly
- TinyMCE富文本编辑器中文文档:http://tinymce.ax-z.cn/
- 前端标签输入组件jquery tagsInput:https://github.com/xoxco/jQuery-Tags-Input
- jwt:https://jwt.io/
- jquery:https://jquery.cuishifeng.cn/
- shiro:http://shiro.apache.org/
- jsoup处理html富文本 https://jsoup.org/,https://blog.csdn.net/qq_24549805/article/details/52833463
- 百度授权登录官方文档:https://pan.baidu.com/union/document/entrance#%E6%8E%A5%E5%85%A5%E6%B5%81%E7%A8%8B
- thymeleaf-shiro:https://github.com/theborakompanioni/thymeleaf-extras-shiro
-
- mybatis3中文文档:https://mybatis.org/mybatis-3/zh/index.html
- 动态SQL if:https://blog.csdn.net/xu1916659422/article/details/78104976/
-
- LayIM 3.9.1:https://github.com/passerbyYSQ/LayIM-3.9.1
- 开发文档:http://www.51xuediannao.com/js/jquery/layim.html
- 西瓜播放器:https://v2.h5player.bytedance.com/
- Redis命令中文文档:http://doc.redisfans.com/
Related Skills
canvas
346.8kCanvas Skill Display HTML content on connected OpenClaw nodes (Mac app, iOS, Android). Overview The canvas tool lets you present web content on any connected node's canvas view. Great for: -
node-connect
346.8kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
107.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
346.8kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
