草庐IT

Custtable

全部标签

java - 如何在 Spring Boot 中正确指定数据库模式?

在我的springboot/hibernate应用程序中,我需要连接到属于“dbo”模式的Postgres数据库“ax2012_1”。我有以下application.properties:#Databasedb.driver:org.postgresql.Driverdb.url:jdbc:postgresql://localhost:5432/ax2012_1db.username:my_user_namedb.password:my_passwordspring.datasource.url=jdbc:postgresql://localhost:5432/ax2012_1spri

java - 如何在 Spring Boot 中正确指定数据库模式?

在我的springboot/hibernate应用程序中,我需要连接到属于“dbo”模式的Postgres数据库“ax2012_1”。我有以下application.properties:#Databasedb.driver:org.postgresql.Driverdb.url:jdbc:postgresql://localhost:5432/ax2012_1db.username:my_user_namedb.password:my_passwordspring.datasource.url=jdbc:postgresql://localhost:5432/ax2012_1spri