Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]

前端 未结 9 1485
遥遥无期
遥遥无期 2020-12-08 18:30

I am trying to configure hibernate orm mapping tool to my java class and using PostgreSQL as my database and configured the password as "password". When I tried to

9条回答
  •  不思量自难忘°
    2020-12-08 18:56

    You don't need hibernate-entitymanager-xxx.jar, because of you use a Hibernate session approach (not JPA). You need to close the SessionFactory too and rollback a transaction on errors. But, the problem, of course, is not with those.

    This is returned by a database

    #
    org.postgresql.util.PSQLException: FATAL: password authentication failed for user "sa"
    #
    

    Looks like you've provided an incorrect username or (and) password.

提交回复
热议问题