Prompt, here in mavena when I do a spring project. What you need specifically to create a simple lightweight application that uses only bins and DI, why everyone creating a project adds a lot to a maven. I tried to create projects just from the spring box, and everything seemed to work out all that was needed (I mean, bins and DI were created). Dak why many people add strings to the maven, such as context, bin and something else, why it works without them and what they generally need to do with what they are for. Maybe the couple is not writing, I'm just a beginner, I teach myself on the book.

and if it is possible in short what is and what they eat with: Spring Context, Spring Beans. I'm getting confused. Here now I create again the project maven and I think that it is really necessary to load from this.

  • The Spring documentation describes in more or less detail what each module you listed is responsible for. - enzo

1 answer 1

It all depends on the tasks that you face.

If you want to use spring as a DI container, one spring-context dependency is enough. Do not forget that this framework is large enough. There are a lot of projects in it:

  • spring boot
  • spring mvc
  • spring batch
  • spring security
  • spring integration
  • and pr ( their thousands )

spring has components that can be used in the projects listed above. The most basic ones are spring DI and spring AOP , besides them there are more to work with transactions , c SPEL , etc.