Impl JavaConfig and remove xml configuraion