I guess your JDK 11 may be bundled in your IDE?
You don't need to set JDK 17 to your environment variable. As long as your IDE has set the correct JDK version and be consistent with your pom /gradle's JDK version defined by you, it should work.
I think as long as your IDE's default compiler is set to 17, its language level is set to 17 and the pom defines Java version to 17, your code should run.
Or, you can set everything to JDK 11. But nowadays, people use JDK 17 or above.
In .m2/repository, do you have org/springframework/spring-webmvc directory?
Or, are you sure 5.2.6.release is the right release for your book's example?
So, if you think you miss some jar files, please make sure they are properly imported by your IDE.
Or, go to your local directory under your users folder if you are using Window. Search for .m2/repository. Search for the dependencies' folder. Remove those dependencies
that may be corrupted. Then import them again.
If you add the Spring Security dependencies, it will prompt you for password.
Can you try to input credentials to see?
Do you define the credentials in the application.properties.
Try a different expression for the cron, for example 0 0 13 11 03 ? (Every March 11 13:00 of your time zone).
Also as suggested by the other members, make sure your time zone on your machine is consistent with the time zone set in your DB.