你如何访问Grails中的两个数据库 [英] How do you access two databases in Grails
本文介绍了你如何访问Grails中的两个数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
现在有了Grails插件,它使直接在Grails的GORM层使用多个数据源:
http://burtbeckwith.com/blog /?p = 70
Grails makes it very easy to configure datasources for different environments (development, test, production) in its DataSources.groovy file, but there seems to be no facility for configuring multiple datasources in one environment. What to I do if I need to access several databases from the same Grails application?
解决方案
There is now Grails plugin that enables the use of multiple datasources directly with Grails' GORM layer: http://burtbeckwith.com/blog/?p=70
这篇关于你如何访问Grails中的两个数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文