What is the default auto help in spring?

Looking at my web application, it seems that auto-installation by default is by name. I have not used the autowire keyword in any XML files, but it still auto-magnifies. Based on this link , it seems that in this case auto-automation should not happen.

Why is this happening? Can we install it globally somewhere in a project?

+6
source share
2 answers

Spring auto install by type

+2
source

As this link describes

By default there is no automatic posting, set it manually using the "ref" attribute. In case of auto-detection - if a default constructor is found, use "autwired by constructor"; Otherwise, use "autwire by type".

+1
source

Source: https://habr.com/ru/post/909755/


All Articles