fix spring bean injection

Hello,

the spring configuration with @Inject on the configureGlobal method provoke bean factory exception. I suggest a fix by overriding "configure" method. 

Solution already seen here : http://stackoverflow.com/questions/26348877/can-not-apply-daoauthenticationconfigurer-to-already-built-object

Regards.