I am using Spring boot. I have some question regarding the spring boot beans.
But I have doubt
I use bean which are default scope that is singleton. So they will have only one instance per application.
@Configuration
public class ...{
@Bean
public void method() {}
}
And
Now i use bean which scope is prototype. So they will have each instance per request.
@Configuration
public class ...{
@Bean
@Scope("prototype")
public void method() {}
}
But
I want single instance per user..? all request use single instance per user.