Home > Back-end >  What is the scope attribute springProperty?
What is the scope attribute springProperty?

Time:11-28

Beginners Spring Boot, the scope attribute of the springProperty don't understand what is the use of the official document is only one explanation:

The
reference
If you need to store the property from somewhere other than in the local scope, you can use the scope attribute.


Officials also gave an example:
 



Look the scope attribute has two values: the context and the local,


Consult the scope is what meaning, what's the difference between the two values,

CodePudding user response:

The scope is scope

CodePudding user response:

reference 1st floor pinoco response:
scope is scope


The context represents what, the local representative what again?

CodePudding user response:

refer to the second floor leopardaa521 response:
Quote: refer to 1st floor pinoco response:
scope is scope


The context represents what, the local representative what again?
context is the context, can use the global, the local local use, this is not so sure

CodePudding user response:

Just want to know the specific meaning of the context and the local, and in what scenario is used, what is the difference

CodePudding user response:

Bean is the scope of this attribute, it determine how you say?

CodePudding user response:

reference 5 floor KeepSayingNo reply:
bean is the scope of this attribute, it determine how you say?


The young man look at:

  • Related