Skip to content

Tag: spring

Which bean is loaded if profile is not set?

Testing the below Spring profile : It seems that com.Test2 is loaded if a Spring profile is not set. Is this the expected behavior ? I’m just trying to understand how Spring loads classes if profiles are set/unset. It seems that if a profile is not set then Spring will create the class if it exists outs…

How to Validate Ordinal Dates?

My julian date is in 7 digit format YYYYDDD. I want to make sure all the scenarios of leap years should be covered. Currently I have put a check on days. Is there any utility validating it ? Answer I want to make sure all the scenarios of leap years should be covered. Currently I have put a check on

Spring-Boot-Security: Custom Authenticator

I am starting with Spring-Boot and have an application with WebSecurity. Its working fine, I have InMemory Authentication with static user/passwords. Now I have no need for DB or LDAP or … But I want to build a custom authenticator that uses dynamic data (e.g. password has current time in it). How to im…