OneBlog is a simple, beautiful, powerful and adaptive Java blog. Developed using springboot, the front end uses Bootstrap. Supports mobile terminal adaptation and is equipped with complete front-end and back-end management functions.
1. Multiple editors: supports two rich text editors, wangEditor and Markdown, you can choose by yourself
2. Automatically apply for friendly links: Apply for friendly links online, without the need for manual configuration by the webmaster. The applicant only needs to add the webmaster's connection and apply by himself.
3. Baidu push: Supports Baidu push function and accelerates the inclusion of blog posts by Baidu search engine
4. Comment system: Self-developed comment system supports displaying user address, browser and OS information. The background can review comments, enable anonymous comments, reply and notify comments by email.
5. Permission management: The background is equipped with complete permission management
6. SEO: Comes with SEO templates such as robots and sitemaps to automatically generate robots and sitemaps
7. Real-time communication: Administrators can send real-time messages to online users (user authorization required - based on websocket implementation, for details, refer to the use of Websocket in DBlog website building)
8. The system configuration supports quick configuration: domain name information, SEO optimization, appreciation codes, Qiniu Cloud, update and maintenance notifications, etc. can be manually modified through the background.
9. Multiple file storage: Integrate Qiniu Cloud and Alibaba Cloud OSS to realize file cloud storage and support local file storage.
10. File porter: Integrate blog-hunter to implement the "article porter" function, which supports one-click synchronization of articles on imooc, csdn, iteye or cnblogs, and can capture lists and single articles.
11. Third-party authorized login: Integrate JustAuth to realize third-party authorized login
(Take the blog-web project as an example)
1. Use IDE to import this project
2. Create a new database CREATE DATABASE dblog;
3. Import the database docs/db/dblog.sql
4. Initialize the database docs/db/init_data.sql
5. Modify configuration file
(1) Database link attributes (search for datasource or locate L.5 in the [blog-core]/resources/config/application-center-{env}.yml configuration file)
(2), redis configuration (search for redis in the [blog-core]/resources/config/application-center-{env}.yml configuration file or locate L.14)
(3) After the above two necessary configuration items are modified, the project can be started. For other configuration items, please refer to the backend "System Configuration" page
6. Run the project (three methods, choose one)
(1) Execute mvn -X clean package -Dmaven.test.skip=true -Ptest compilation and packaging in the project root directory (Note: - test in Ptest is the environment identifier), then cd to the blog-web directory and execute java - jar target/blog-web.jar
(2) Execute mvn spring-boot:run in the root directory of the blog-web project (note, if dependency errors are reported, you can first perform the install operation on the relevant dependency modules)
(3), run BlogWebApplication.java directly
7. Browser access http://127.0.0.1:8443
8. The startup method of blog-admin project is similar to blog-web. Please refer to the above instructions for use.
v2.3.4
Modify CDN resources
Add the background configuration of the CDN resource reference file. When the CDN is unavailable, you can directly modify (if not, you need to add) the following four configurations in the database.
adminJsCdn (CDN for console JS files)
adminCssCdn (CDN for console CSS files)
webJsCdn (CDN for Web-side JS files)
webCssCdn (CDN for Web-side CSS files)
Note: If you manually operate the database to modify the configuration information, you must change the update_time, and the changed update_time must be later than the previous update_time value.
v2.3.3
Added scheduled tasks: "Automatically check Youlian every night at 12 o'clock in the morning, and automatically block websites that cancel Youlian privately."
Article support settings [visible after logging in]
Optimize the classification display on the web side and support displaying categories in the form of a scrolling menu to prevent the menu bar from overflowing due to too many categories.
Supports disabling the Yiyan plug-in (the plug-in sometimes loads slowly)
When the article has not been modified for a long time, the user will be prompted