The great thing about Spring is that you can choose and choose what you use. If you want to use Spring, you do not need to jump into the head first, you can just try it, say, using the Injection Dependency functions or using the JDBC Template material. My recommendation would be to start small and see how you like it.
To use Web MVC material, you will need to understand Injection Dependency to configure your controllers. You can use an older, more flexible XML-style configuration, or use new annotations. Or you can mix and match. Starting with XML might be better, as it will help you understand how the material works (it will be like learning C and C ++ before Java). Then you can move on to using annotations. Personally, I use XML to instantiate all my beans. I am using @Autowire annotation for dependency injection. This is perhaps the most pleasant place for more flexibility and ease of use.
source share