I am using spring boot 2.0.5 with below dependency for spring security of 5.0.8
org.springframework.boot