If username and password are set in application.properties file then we can't get generated security password.
Removing of below properties from application.properties file will generate it,
spring.security.user.name= (your username)
spring.security.user.password= (your password)