Adding spring security with javaconfig to the project