---
title: "springMVC+hibernate动态切换SessionFactory （切换数据库方言）"
author: "krs"
date: "2016-08-10T01:05:47Z"
tags: []
categories: ["企业架构"]
slug: "springmvc-hibernate-sessionfactory"
draft: false
lastmod: "2016-08-10T01:05:47Z"
id: 2316503
url: "https://krs.iteye.com/blog/2316503"
---

最近用到多数据源动态切换，一直无法解决言的切换，参考此文后解决。

# [Spring3 整合Hibernate3.5 动态切换SessionFactory （切换数据库方言）](http://www.cnblogs.com/hoojo/p/dynamic_switch_sessionfactory_muliteSessionFactory.html)