'Converting spring XML configuration to java based configuration

I have a requirement to convert XML based spring beans to java based configuration. These beans are huge in number. So, I am looking for a tool which can do this job automatically. Any pointers are appreciated!

I understand this is NOT 100% achievable but automation to some extent is also fine.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source