All Projects → PuZhiweizuishuai → community

PuZhiweizuishuai / community

Licence: MIT license
基于spring boot与mybatis搭建的社区

Programming Languages

javascript
184084 projects - #8 most used programming language
typescript
32286 projects
CSS
56736 projects
HTML
75241 projects
java
68154 projects - #9 most used programming language
SCSS
7915 projects

Projects that are alternatives of or similar to community

Ssm redis template
An template based on Maven, using Spring + Spring MVC + mybatis + spring-data-redis frames. It can be used to construct a new Java Web Appliaction quickly
Stars: ✭ 13 (-27.78%)
Mutual labels:  mvc, mybatis
Music Website
🎧 Vue + SpringBoot + MyBatis 音乐网站
Stars: ✭ 673 (+3638.89%)
Mutual labels:  mvc, mybatis
AllInOneFX
All In One JavaFX Application with a curated list of awesome JavaFX libraries, frameworks
Stars: ✭ 26 (+44.44%)
Mutual labels:  mvc, mybatis
focus
Community system build using GoFrame.
Stars: ✭ 103 (+472.22%)
Mutual labels:  community, mvc
vimdoc-ja-working
vimdoc-ja working repository
Stars: ✭ 70 (+288.89%)
Mutual labels:  community
black-postoffice
[무신사 신입] 익명으로 편하게 고민, 일상을 공유하는 소셜 네트워크 서비스입니다.
Stars: ✭ 31 (+72.22%)
Mutual labels:  mybatis
platform
Mapseed is a simple, beautiful way to collect information and tell geographic stories.
Stars: ✭ 81 (+350%)
Mutual labels:  community
build-a-space
Automatically add community documentation to your repository
Stars: ✭ 18 (+0%)
Mutual labels:  community
gd-generator
A code generator that elegantly generates mybatis ORM (mapper and xml config) and intelligently retains user-defined mapper and xml, automatically creates/synchronizes database tables, and records and prints exactly after each domain model change Database repair sql, support for the production of a variety of complex VO (View Object) objects, al…
Stars: ✭ 82 (+355.56%)
Mutual labels:  mybatis
community
FINOS Community, Project and SIG wide collaboration space
Stars: ✭ 43 (+138.89%)
Mutual labels:  community
community
Volantis Community 社区主页 https://vlts.cc https://volantis.js.org
Stars: ✭ 85 (+372.22%)
Mutual labels:  community
hackergarten.github.io
Hackgarten Homepage
Stars: ✭ 17 (-5.56%)
Mutual labels:  community
NanoSoft
A forum system built using plain php dedicated for C#.NET Developers
Stars: ✭ 20 (+11.11%)
Mutual labels:  community
online-training
Online Training website using ASP.Net Core 2.0 & Angular 4
Stars: ✭ 26 (+44.44%)
Mutual labels:  mvc
Neo
Orm框架:基于ActiveRecord思想开发的至简化的java的Orm框架
Stars: ✭ 35 (+94.44%)
Mutual labels:  mybatis
wordpressmvc
Разработка сайтов на Wordpress с помощью MVC подхода
Stars: ✭ 12 (-33.33%)
Mutual labels:  mvc
polskifrontend
Polski Frontend to agregator blogów, podcastów i kanałów wideo polskiej sceny frontendowej.
Stars: ✭ 45 (+150%)
Mutual labels:  community
mybatis-mapper
generate SQL statements from the MyBatis3 Mapper XML file in Node.js
Stars: ✭ 64 (+255.56%)
Mutual labels:  mybatis
community-projects
Webots projects (PROTO files, controllers, simulation worlds, etc.) contributed by the community.
Stars: ✭ 20 (+11.11%)
Mutual labels:  community
nuts
Nuts and bolts for building cross-platform UI (HTML, Flutter, CLI) using Dart. Also screw frameworks (React, Vue, Angular).
Stars: ✭ 12 (-33.33%)
Mutual labels:  mvc

不挂高数社区(名字可以随便改的)

参考项目

mawen 社区

community

在线访问

https://community.buguagaoshu.com/

介绍

目前还是MVC模式,开发完成后可能会考虑前后端分离

已完成登陆注册,发帖,回复评论,点赞,markdown编辑,消息通知,图片文件上传,个人界信息编辑,热门话题,问题与用户的搜索,热门帖子与话题,以及后台管理(在主页输入url /admin 进入)设置首页置顶问题,管理社区,远程查看日志,设置等

部分权限验证,关注用户,话题以及问题

还有一个简单的在线聊天室

待完成找回密码,删除未使用图片

后端使用 Spring boot 和 mybatis 开发

密码加密采用 Spring Security 的 Bcrypt 加密

页面模板使用 Thymeleaf

前端页面设计使用 BootStrap4

热门话题与热门问题每一小时更新一次

每两小时处理一次离线用户

每六小时同步一次管理数据

快速运行

你可以选择到releases中下载直接运行或这自己打包。

不管怎样,你都需要先使用 database.sql 脚本创建数据库

与配置 application.yml

以下为打包方法

环境准备

Java版本: Java 8 及以上

maven: 3

数据库: MySQL 或者 MariaDB 或者 H2 (使用H2数据库需要在pom文件中添加H5依赖)

注意:数据库字符集请使用 utf8mb4,以便用于支持 emoji,不然在插入emoji时会异常

        <dependency>
            <groupId>com.h2database</groupId>
            <artifactId>h2</artifactId>
            <version>1.4.199</version>
        </dependency>

使用 database.sql 脚本创建数据库 配置 application.yml

安装 Redis, 或配置Redis连接

安装 MinIO 服务器, 修改 application.yml 里 MinIO 参数

运行打包命令

mvn clean package

运行项目

java -jar target/community-0.0.1-SNAPSHOT.jar

即可

注意:第一个管理员账号需要在创建完数据库运行项目注册第一个账户后,手动将数据库的权限表power列数据改为0

第一次运行如果没有修改配置文件中上传图片保存路径与日志路径的化,系统会默认在程序运行的目录下创建file文件夹和log文件夹,分别保存图片文件和日志文件!

也可以在 IDEA 中导入此项目,如果 getter 和 setter 飘红,则需要安装 IDEA 得到 Lombok 插件

页面展示

(ps:如果图片不显示,请到images文件夹下查看)

主页

主页

用户首页

用户首页

用户信息修改页

用户信息修改页

问题展示页

群聊页

聊天页

聊天页

消息提醒页

管理员页面

资料

spring 入门指南

spring boot文档

spring boot 日志

spring thymeleafk快速指南

mybatis 文档

mybatis-spring-boot-autoconfigure

Java web开发基础

BootStrap4 中文文档

spring-session-jdbc

一个websocket-chat-demo

MinIO 官方文档

工具

在线 markdown 编辑器 markdown edit

Vditor

JavaScript剪裁图片工具 cropperjs

JavaScript定位引擎 popper.js

BootStrap 日历选择插件 Tempus Dominus

节省多余的Java代码 Lombok

后端生成验证码的工具包 EasyCaptcha 验证码 注意:此工具和kaptcha有一样的问题,使用的Random方法有不安全,CVE-2018-18531对安全性要求较高的,建议下载源码后将Random方法更改为SecureRandom

更新:最新版修复了这个问题

JWT验证工具 JJWT Java JWT

代码文件结构

cache 缓存

component 组件

config 自定义配置

controller 控制层

dto DAO层负责页面与后端程序的数据传输

enums 各种数据的类型

exception 异常处理

interceptor 过滤器

mapper 数据库映射

model 定义数据库和后端程序的数据交换类型

schedule 定时任务

service 服务层

util 各种工具

更新日志

2020-03-29更新

使用Spring Session Redis

2020-03-08更新

添加对象存储MinIO,升级Spring版本

2019-11-10更新

增加一个在线聊天室

2019-11-07更新

增加远程查看日志功能,在管理员界面查看

2019-11-04更新

添加广告投放功能,进入admin页面即可进行投放广告

2019-11-01更新

优化消息通知显示,可以显示对方回复内容

2019-10-27更新

完成关注用户,话题以及问题

2019-10-26更新

优化发帖时间显示

2019-10-24更新

添加多级评论,点击评论可以 @ 用户

2019-10-20更新

替换 markdown 编辑器为更加好用的 Vditor

修改数据库字符集为 utf8mb4 以便用于更好的支持 emoji

2019-10-15更新

完成话题分类页

2019-09-27更新

完成评论点赞,删除评论

2019-09-25更新

添加问题点赞功能,待完成评论点赞

暂时移除 spring-session-jdbc 等待修复添加 spring-session-jdbc 后造成的登陆序列化异常 BUG

2019-09-22更新

添加 spring-session-jdbc,修改配置文件为 yml,删除不必要的包

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].