Upgraded to Java Configuration.

Hi,

Thanks for the wonderful sample.  I just made below updates in order to keep it in align with latest changes in Spring and Servlet.

1) Spring Java Configuration
2) Servlet 3

Please review the same and update it if you like it.

Thanks again for the sample, i have done swagger integration successfully for my project.

Regards,
Sathish Kumar T.