我已经解决了这个问题。而不是
spring.datasource.schema=schemaName应该有
spring.jpa.properties.hibernate.default_schema=schemaName。
在我的情况下,生成表所需的必要属性集如下:
spring.datasource.url = jdbc:postgresql://localhost:5432/postgresspring.jpa.properties.hibernate.default_schema = schemaNamespring.datasource.username = userNamespring.datasource.password = userPasswordspring.jpa.hibernate.ddl-auto = create-dropspring.jpa.show-sql = true



