For further reference, please consider the following sections:
- Java 1.8
- Maven
- Mysql running on port 3306
- Once Installation is done follow following steps:
- Set the properties into the application.properties as:
- spring.datasource.username=(set your Mysql UserName)
- spring.datasource.password=(set your Mysql password)
- Optionally if the database name
test
or the port3306
conflict with the existing configuration you can always change them by hand inapplication.properties
- Set the properties into the application.properties as:
- Run you project with mvn spring-boot:run and launch from browser with http://localhost:8181/
- Once the app comes up you will find the documentation at http://localhost:8181/swagger-ui.html
-
The app when it comes up will have 2 users created in the system -
[email protected]
with passworduser1ABC
[email protected]
with passworduser2ABC
-
[email protected] cant login but [email protected] can
-
You can use the
try it out
feature on the swagger page with for the/login
API to simulate this.Alternately you can use any choice of REST client for the same. -
The output expected out of this is as follows
- Debug why the login for [email protected] fails.
- Once the bug is discovered fix it and submit the assignment via git