Change hibernate.cfg.xml runtime - second part
问题 I'm trying to use a mixed form for the definition of the SessionFactory, because I want to allow the user using my webapp (SpringMVC +hibernate), the first interaction, define the credentials to access the database. I defined the following files: hibernate.cfg.xml <hibernate-configuration> <session-factory> <property name="hibernate.connection.driver_class">org.postgresql.Driver</property> <property name="hibernate.dialect">org.hibernate.dialect.PostgreSQLDialect</property> <mapping resource=