Sunday, March 3, 2019
Hands On Full Stack Development with Spring Boot 2.0 and React by Juha Hinkula
you are warned: "incula" is a terrible word in Italian, so if you talk about this book with Italians you should be very careful.
https://github.com/PacktPublishing/Hands-On-Full-Stack-Development-with-Spring-Boot-2.0-and-React
Better to install MariaDB.
If you want to change root password:
cd D:\Program Files\MariaDB 10.3\bin
mysqladmin.exe --user=root --password=oldpassword password "newpassword"
to connect
mysql -u root -p
create database cardb
For chapter04, password can be replaced with "pippo" (bcrypted the value is $2a$04$ryGKh2NmcAj.dRzU/MDDVeTApJAMrfbyzVVGlclK8u/HLrTamBH5m )
curl -u admin:pippo http://localhost:8080/api (this will fail because you need a valid JWT token)
then the POST to localhost:8080/login must have a body {"username": "admin", "password": "pippo" }
and in the Authorization header you get Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTU1MTY0Nzg3OX0.DlHNCsxwasv4wjZcar2afWWx5ispQWFfIfL6NEnsrDYucLqPQWO53WcmUUDJfw12t0ux-9P-HzwF8qKnd1SNDg
Labels:
reactjs,
springboot
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment