转发: https://www.cnblogs.com/lyr-notebook/p/5843341.html http://www.cnblogs.com/hoojo/p/dynamic_switch_sessionfactory_muliteSessionFactory.html