a. Create database
mysql> create database springSecurityLogin1;
b. Create database user identified by custom password.
mysql> create user 'springSecurityLogin1'@'localhost' identified by '<password>';
c. Set grant privileges on database to user.
mysql> grant all privileges on springSecurityLogin1.* to 'springSecurityLogin1'@'localhost';
mysql> flush privileges;
# aplication.properties
# MySQL database configuration
spring.datasource.url=jdbc:mysql://localhost:3306/springSecurityLogin1?useUnicode=true&characterEncoding=UTF-8&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC&useSSL=false&allowPublicKeyRetrieval=true
spring.datasource.username=springSecurityLogin1
spring.datasource.password=<password>
spring.datasource.sqlScriptEncoding=UTF-8
spring.jpa.hibernate.ddl-auto=create
spring.datasource.initialization-mode=always
#servler
server.servlet.context-path=/
server.port=8080