#Blog Create your posts about your life or some else.
##Run
- Run the createDB.sh or do some steps:
- Create a database 'Blog' with encoding to UTF-8 (i.e.
CREATE DATABASE Blog DEFAULT CHARACTER SET 'utf8' DEFAULT COLLATE 'utf8_unicode_ci') - Run a project to create a tables.
- Create a field in role table (i.e. ROLE_USER, ROLE_ADMIN).
- Create a field in users table (i.e. example@mail, $2a$11$r09HI3B.IlfLC1pFuAsZ7exhDF4er162Ii1G78oj/hxiQ4fvn5aSK, admin).
- Create a fields in user_role table, wireless userId of admin with roleId (i.e. 1, 1 and 1, 2).
- Create a database 'Blog' with encoding to UTF-8 (i.e.
- Change fromEmail and password fields to your real account email (I use Yandex mail for these, i.e. smtp.yandex.ru) in SMTPServer class.
- Execute:
mvn install tomcat7:run-war - Follow to the link: http://localhost:8080/