Come posso avviare un'applicazione JPA Spring Boot autonoma - non via cli - con una scelta di database per ottenere dati, ad esempio localhost: 5432/my_db; o 192.168.1.100:5432/our_db o example.com:5432/their_db?Spring Boot JPA Scelta database
miniera attualmente utilizza quella nel file che contiene 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
Grazie in anticipo
Come verrà effettuata la scelta? Qual è il criterio? – geoand