1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
// h2 // pom <dependency> <groupId>com.h2database</groupId> <artifactId>h2</artifactId> </dependency> //application properties spring.jpa.properties.hibernate.hbm2ddl.auto=update spring.datasource.url=jdbc:h2:mem:testdb spring.datasource.driverClassName=org.h2.Driver spring.datasource.username=sa spring.datasource.password=password spring.jpa.database-platform=org.hibernate.dialect.H2Dialect spring.h2.console.enabled=true spring.h2.console.path=/console spring.h2.console.settings.web-allow-others=true // w przypadku wgrania aplikacji na zdalny serwer |