美文网首页
2.Configuration的三种配置

2.Configuration的三种配置

作者: 木有鱼丸啦 | 来源:发表于2018-01-17 10:35 被阅读0次

    a.Configuration config=new Configuration().config();主要加载src下的hibernate.cfg.xml

    b.Configuration config=new Configuration();主要加载的src下的hibernate.properties

    c.Configuration config=new Configuration().config(核心配置文件名称);加载指定的名称的配置文

    相关文章

      网友评论

          本文标题:2.Configuration的三种配置

          本文链接:https://www.haomeiwen.com/subject/gkmyoxtx.html