Build a Stylish Java Blog with SpringBoot: DBlog Quickstart Guide
This article introduces DBlog, a lightweight, responsive Java blog system built with SpringBoot and Bootstrap, outlines its module structure, technology stack, key features, and provides step‑by‑step instructions for setting up the development environment, configuring the database, and running the application.
Overview
DBlog is a clean, responsive Java blog platform developed with SpringBoot on the back end and Bootstrap on the front end. It supports mobile devices and offers a complete set of front‑end and back‑end management functions, making it a practical alternative to PHP‑based blogs.
Modules
blog-core : Core business logic, data operations, and utility services.
blog-admin : Administration module for managing content and settings.
blog-web : Front‑end module that renders the public website.
Technology Stack
SpringBoot 1.5.9
Apache Shiro 1.2.2
Logback
Redis
Lombok
WebSocket
MySQL, MyBatis, Mapper, PageHelper
Freemarker
Bootstrap 3.3.0
wangEditor
jQuery 1.11.1, jQuery Lazyload 1.9.7, fancybox, iCheck
Alibaba Cloud OSS
Qiniu
Kaptcha
Key Features
Supports both wangEditor and Markdown rich‑text editors.
Online friend‑link application without manual configuration.
File submission to Baidu webmaster platform for faster indexing.
Custom comment system.
Comprehensive permission management in the admin panel.
Automatic generation of robots.txt and sitemap for SEO.
Quick system configuration via the admin UI (domain, SEO, donation codes, Qiniu, update notices, etc.).
Setup Steps
Import the project into an IDE (e.g., IntelliJ IDEA 2017.3).
Create a MySQL database: CREATE DATABASE dblog; Import the provided SQL script located at docs/db/dblog.sql.
Edit resources/application.yml to configure:
Database connection properties (search for datasource).
Redis settings (search for redis).
Mail settings (search for mail).
Qiniu cloud settings (see config table fields prefixed with qiniu).
Run the project (choose one of the following):
Package with Maven and start the web module: mvn -X clean package -Dmaven.test.skip=true -Ptest then java -jar target/blog-web.jar inside the blog-web directory.
Directly run the main class BlogWebApplication.java from the IDE.
Open a browser and visit http://127.0.0.1:8443 to see the blog.
Default Admin Accounts
Super Administrator : username root, password 123456 (local testing).
Regular Administrator : username admin, password 123456.
Comment Review Administrator : username comment-admin, password 123456.
It is recommended to follow the principle of least privilege when creating additional users.
Source Code
The project is open‑source and available on both Gitee and GitHub.
Screenshots
Front‑end pages:
Back‑end pages:
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
Java Architect Essentials
Committed to sharing quality articles and tutorials to help Java programmers progress from junior to mid-level to senior architect. We curate high-quality learning resources, interview questions, videos, and projects from across the internet to help you systematically improve your Java architecture skills. Follow and reply '1024' to get Java programming resources. Learn together, grow together.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
