Project open source address: www.github/shaoxiongdu/blog

Blog previews

1. Blog previews online

www.shaoxiongdu.cn

2. Blog screenshots preview

Ii. Project selection

Personal blog language version
Front-end base language HTML_+CSS+JavaScript
Front-end UI framework SemanticUI 2.2.4
Front-end rendering template engine Thymeleaf 2.1.5. RELEASE
The back-end framework SpringBoot 1.5.7. RELEASE
JDK version Java 1.8
Data persistence layer SpringBootJPA 1.5.7. RELEASE
Database-driven MySQL 5.1.44

Run the tutorial

1. Import the project from GitHubMaking the address

Fork the Project, Create a new Project with IDEA, click “Create Project For Version Control”, copy the github address of the Project and paste it into the Git address in IDEA, select “Clone” and wait For the Project to download

2. Configure project dependencies

Some IDEA versions require the JDK to be specified in the project structure

3. Database import related

Create a new database named blog and run the SQL script in the DB folder to generate the table structure. And insert data.

4. Configure the database

Change the database information in the -prod configuration file, make sure you are connecting to your blog database, and change the mysql driver version in the POP file.

5. Visit blogs

Start the SpringBoot project. The address for accessing the home page of the blog is localhost. The address for accessing the login page of the blog background is localhost/admin. The default administrator account is admin, and the password is DSx05117218.

6. Add data

Background in order to add classification, tags, blog content blog home page refresh can be updated.

7. Precautions

* Note: The project port number can be changed to port 80 by default in the main configuration file

Customize blog attributes

  • Bottom template file

    • At the bottom of the template file SRC/main/resources/templates / _fragments. HTML

    • Administrators at the top of the page template file at the bottom of the SRC/main/resources/templates/admin / _fragments. HTML

  • [About me] page

    • The about author text is maintained by the aboutMeContent field in the T_website_INFO table
    • Photo online address can be modified in the administrator background
  • At the top of the title

    • Can be modified in the administrator background

V. Deployment tutorial

See the SpringBoot Project Deployment Server tutorial for details

Pay attention to

I have sorted out the project, but the source code and related information of the project can not be accessed on GitHub due to domestic network reasons