Hibernate configuration on runtime

后端 未结 3 1084
夕颜
夕颜 2020-12-08 11:46

I have hibernate.cfg.xml file.



    
    

        
3条回答
  •  悲哀的现实
    2020-12-08 12:28

    Try to call conf.configure(); here.
    And properties may need to have hibernate prefix like "hibernate.connection.username"
    Hope it helps.

提交回复
热议问题