Introduce java config for spring security