@Controller
@Scope("session")
public class SomeController {
private CoreDataService coreDataService;
private final Logger logger = LoggerFactory.getLogger(SomeController.class);
private SomeBusinessObject bo;
private long activityId;
...
}
有人在将Spring Controler作为会话范围的bean时看到任何问题吗? 所以我不相信这种方法,但我无法证明为什么我们不应该这样做。请指导我。