As a rule, yes, that’s right.
If for each request you received a request with a bean scope directly from BeanFactory, then you do not need a proxy.
But you need a proxy server if you are going to use a soped bean request as depenedncy for a singleton scoped bean, for example, for example:
@Controller
public class MyController {
@Autowired
private ShoppingCart shoppingCart;
}
. reference beans.
, , JDK CGLIB. spring .