I have some doubts about this topic. In our application for most Spring beans (dao`s, services and controllers) we use the "request" area. This approach allows us to reduce memory usage and create stateless levels. But in other cases, we lose performance with every request in the initialization of the Spring context. I am thinking of creating some beans, for example. DAO, in the scope of "singleton" or "prototype".
What methods do you use in your applications? Maybe there are some tips for developing Spring web application beans areas?
, , :
, (http). .
. , - bean . .
spring. , , beans. , , bean .
DAO Services ( , ), . , - , ?. , , - . , , .
: bean IoC Spring.
. bean .
: bean HTTP-; HTTP- bean, bean. - Spring ApplicationContext.
: bean HTTP. - Spring ApplicationContext.
: bean HTTP. . - Spring ApplicationContext.
, DAO @Repository, @Controller @Service.
,