Skip Navigation

Search

Java @programming.dev
Thumper @lemmy.world

How make sure that the scheduler does not run on holiday

Hey Guys,

For my current spring boot project I have been using a @Scheduled annotation and using cron syntax for running jobs, but now I don't want to schedule jobs on holiday (based on US calendar).

So is there any approach to skip the schedule on holiday.

Thanks for your help in advanced.

Java @programming.dev
abbadon420 @lemm.ee

Are there any (simple) open source java projects I can study to better my understanding of real world code?

I teach a course in java and springboot for beginners. I would like to walk my students through the code of a real world java or springboot application. Can anyone recommend a good example?

Java @programming.dev
abbadon420 @lemm.ee

Why does Auth0 allow for direct usage of social logins, but with Keycloak I have to register my app at each Identity Provider first?

https://lemm.ee/post/29785400

So I'm making a project in SpringBoot with Oauth security.

If I use Auth0 as my Authorization Server, I can register an application there and just say that I want user to be able to login with Google an Facebook. That's all it takes.

If I use Keycloak as my Authorization Server, I can also have users choose Google or Facebook as there prefered login, but in order to provide that, I have to register my app with Google and Facebook first.

So how come it's so easy with Auth0 and a little less easy with Keycloak? Is it a contract thing, does Auth0 have contracts with all these providers or something?