Singleton springmvc

By default springmvc are single cases, with @Controller annotated web page, the next request, you can get information on the last run of the controller member variables.

For example: controller inside the class are:

LinkedBlockingQueue<Runnable> taskQueue = new LinkedBlockingQueue<Runnable>();

The first to put taskQueue inside when you run a task controller, you can see when the next request size taskQueue = 1

Guess you like

Origin www.cnblogs.com/sidesky/p/11371765.html