开发者

Datasource and transaction manager scope in Spring?

开发者 https://www.devze.com 2023-03-17 10:00 出处:网络
In a spring applic开发者_开发知识库ation what should be the scope of datasource and transaction manager?As per my understanding

In a spring applic开发者_开发知识库ation what should be the scope of datasource and transaction manager?As per my understanding both should be singleton. Is that correct?


Absolutely. Those aren't the kinds of objects that should have more than one floating around.

0

精彩评论

暂无评论...
验证码 换一张
取 消