War with spring security java config (code base).