How to define the scope of a bean?
Answer / Akhand Pratap Kaushal
In Spring Framework, you can define the scope of a bean using the scope attribute in the configuration file or annotation. The possible scopes are singleton (by default), prototype, request, session, application, and webSocket.
| Is This Answer Correct ? | 0 Yes | 0 No |
What are spring jdbc templates used for?
What are spring components?
What is jpa in spring?
What is difference between spring framework and spring boot? : Spring Boot
What are the types of advice?
Where is spring aop used?
What is aop proxy?
What is session scope in spring?
What is spring language?
What is difference between @pathparam and @pathvariable?
What is mvc spring?
What is the difference between responsebody and responseentity?