This article belongs to "Knowledge forest": HTTP://WWW.ZSLIN.COM/WEB/ARTICLE/DETAIL/35
This project is a relatively simple campus blog.
Perfectly formed, although it is relatively simple, but the knowledge points involved are more comprehensive.
This project covers the content of all the knowledge points in Springboot and thymeleaf in the Knowledge forest.
The main functions are:
System Management
- System initialization
- Menu Management
- Role management
- User Management
- System Configuration Management
User Registration
- Message Verification Code implementation
- User Login
- Retrieve password
Post Classification Management
- Add Category
- Modify classification
Blog Management
- Add a blog post
- Edit blog post
Post comment (not implemented)
Initializing the system
In the configuration of the resources/application-dev.properties
database, you can modify the spring.datasource
relevant things to modify the database
Access address after starting project: /init
Initialize (requires an administrator nickname, username and password)
Access /admin
login to background management, in 系统配置
which you can modify the system name, the administrator mailbox (to receive mail notifications for each event), and so on.
In 网站配置
, you can set the school name for the foreground display.
User Registration
Registration through the mailbox, registration needs to send a verification code to the registered mailbox, verification through to register. When registering, determine if the mailbox address already exists, and if present, prompt and cannot register again.
Recover password, forgotten password can be found through the application email address, also by sending a verification code, verification code verification by a random password sent to the registered mailbox.
Log in using your email address and login password
After landing can modify their basic information, such as: Name, motto, Personal introduction and login password.
e-Mail can be sent by referring to another article, "Springboot's javamailsender Email"
Blog Management
Post management is divided into post classification management and post content management
Click "My Classification" to enter the classification management, can be added to their own classification, modification and deletion operations;
Click "My Blog" To access the blog post Content management, you can make changes to your blog post, you can add new, you can add a new category directly.
In the post content management using the wangEditor
online editor, has been configured to upload the image of the service-side program;
Background Management
The background management function belongs to the system management personnel, can refer to another pure project "complete Project infrastructure Lite-Implement rights Management"
In the rights management, there are:,, 菜单管理
角色管理
用户管理
, these three pieces of functionality belong to the system function, when the system is initialized automatically generated.
菜单管理
: Can modify the menu name, Sort, icon (the icon originates from fontawesome.io
or v3.bootcss.com
);
角色管理
: You can add, modify, delete roles, or authorize a resource menu for a role;
用户管理
: You can add, modify, delete users, or assign roles to users, only users who are assigned to a role can log on to the system, and can access only the functions within the permissions of the owning role.
系统配置
: Only this feature is currently available in system administration to set the site name, system Administrator email address (for receiving prompt messages, including: 用户注册通知
, 用户发布博文的通知
, 用户修改博文的通知
), etc.
The system application belongs to the website management function
网站配置
: The school name can now be set, which will be displayed in the previous page;
博文管理
: Used to manage post information posted by users to set the properties of the blog post (including whether the foreground is displayed or not);
用户管理
: View users registered from the foreground (that is, site users).
Unfinished Functionality
In this version temporarily do not write the blog review function, this feature on the technical level without any difficulty, so temporarily do not realize.
Access
Initialization page: Http://sblog.zslin.com/init (already initialized and cannot be initialized again)
Front Page: http://sblog.zslin.com
Background management: Http://sblog.zslin.com/admin
Background Admin user name: admin
Admin user password: 111111
Description
Address on GitHub for this project: Https://github.com/zsl131/school-blog
The knowledge Forest of this project
Project
My page design level is too poor, first casually design point effect comes out mainly is the demonstration backstage program function, therefore the page design first temporarily puts.
User Registration Page Effect:
User information information, Password modification page:
To add a category page effect:
Delete message tip effect:
Add a post page effect:
Post List page effects:
404 error page Effect:
500 error page Effect:
Background Management page Effect:
Http://www.zslin.com/web/article/detail/35
Springboot+jpa+thymeleaf Campus Blog Complete Small website