Code from : https://medium.com/swlh/spring-boot-security-jwt-hello-world-example-b479e457664c
I have upgraded this - with new spring libs, and using h2 instead of a mysql. Added profiles for mysql.
dependency jjwt seems stagnated.
Instead use : jjwt-api. Refer the following: https://dev.to/keysh/spring-security-with-jwt-3j76