Pls set below properties in application.properties as per your mysql database setup.
application.mysql.username=root
application.mysql.password=admin
application.mysql.database-name=demodbcreate table credentials(
username varchar(128) not null,
password varchar(128) not null
);insert into credentials(username, password) values ('superuser', 'superuser'), ('admin', 'admin');mvn clean installmvn spring-boot:runPlease open http://localhost:8080/index.html in browser and provide the values as below:
Username: dummy
Password: ' or '1'='1
Please open http://localhost:8080/securelogin.html in browser and provide the values as below:
Username: dummy
Password: ' or '1'='1