我如何启动一个独立的Spring Boot JPA应用程序——不通过cli——并选择数据库来获取数据,例如localhost:5432/my_db;或192.168.1.100:5432/our_db,或example.com:5432/their_db?
目前我的应用程序使用包含以下内容的application.properties文件中的数据库:
spring.datasource.driverClassName=org.postgresql.Driver
spring.datasource.url=jdbc:postgresql://localhost:5432/my_db
spring.datasource.username=postgres
spring.datasource.password=postgres
spring.jpa.database-platform=org.hibernate.dialect.PostgreSQLDialect
spring.jpa.generate-ddl=true
spring.jpa.show-sql=true
spring.jpa.hibernate.ddl-auto=create
提前致谢