Spring MVC的Controller是线程安全的么

2025-05-06 06:15:24
推荐回答(1个)
回答1:

Spring MVC的Controller是线程安全
不要使用可变的成员变量,当然可以使用service,因为service基本上都是不可变的,因为service除了各种dao,也没有可变的成员变量。