A blogging system developed by springboot / mybatis / thymeleaf
My blog with this project: http://xzou.me/
update: you can also use the runningTools
as runningTools.sh start
to start the blog service.
- make sure you install mysql, jave and maven on your computers.
- set up mysql service, you can also use docker with the code in "docker-support"
- use
mvn build ...
andjava -jar ...
command to start the blog project
- Currently, I used map for cache, and set size of 800, it is unsafe. Replacing it by redis may help.
- New: add "notebook" function, add more feasible PDF/Micrsoft docs reader, link project
- Currently, I used cookie. I want to add Oauth for more functions.
- slove the confliction of logback with JUnit 5.
There are manually backup bottom for databases and web files backup. Besides, there are crontab script running on my server, it will backup the database docker once a day. Check here
Design and create database with mySQL, add docker support Note
- mySQL docker with version higher than 5.7 may cause crash. Reference: docker-library/mysql#69
- Using another .sql file can set the user and password for the database reference: https://github.com/zouxinghao/SpringBoot-blog/blob/master/docker-support/mysql/password.sql
1.Add User function, including create/modify users, log fuction
2.Add Mapping(XML) / service / controller (RESTful) for User/admin function
3.Minor funtion: cache / Exception / message bar
Note
- SLF4J vs Log4J: SLF4J allows to use any independent specific log lib, besides that, SLF4J has better string mechanism like
logger.debug("Processing trade with id: {} and symbol : {} ", id, symbol);
1. Add Unit Test (with JUnit)
2. Add front end code (htnl/css/js) (through thymleaf with templates)
3. Debug for docker function
Note
- ➖ remove JUnit to solve confliection (see development log): JUnit will use logback, while SLF4J will also use it, which cause the confliection, see reference. I will revert it back once I figure out how to solve the confliction.
- AES/MD5 with salt
1. add UUID for user (update on 08/29/2018: also for attach)
1. add WebMvcConfig.java, which is a extend class of WebMvcConfigurerAdapter, and will allow you to add customize function. And the addResourceHandlers function can help load static resource.
2. (pending) Try to add backup function, find that it is too complicated, so I will skip it for now. (update: finish this function in 09/11/2018)
3. update site function
1. Transfer from Jenkins to Travis CI due to the limit of RAM. Integrate the test code
1. add self-deployment with support of Travis CI
add docker method to package and start-up the project