org.postgresql.util.PSQLException: ERROR: relation “app_user” does not exist

前端 未结 5 934
醉梦人生
醉梦人生 2021-01-01 18:45

I have an application that I\'m using spring boot and postgres. I\'m getting this error when I try to create a user.

When I run this query on my database, I get the

5条回答
  •  春和景丽
    2021-01-01 19:05

    It might be also caused missing default schema declaration in hibernate config.

        Properties jpaProperties = new Properties();
    
        ..
    
        jpaProperties.put("hibernate.default_schema", "my_default_schema");
        entityManagerFactoryBean.setJpaProperties(jpaProperties);
    

提交回复
热议问题