Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Specify the database connection settings
- spring.datasource.url=jdbc:h2:mem:testdb
- spring.datasource.driverClassName=org.h2.Driver
- spring.datasource.username=sa
- spring.datasource.password=
- spring.datasource.platform=h2
- # Hibernate settings
- # This will update DB scheme due to your entity design after SQL queries
- # Turning this off for example will not create JoinTables (which are absent in schema.sql)
- spring.jpa.hibernate.ddl-auto=create
- spring.jpa.show-sql=true
- # Automatically execute schema.sql and data.sql on startup. Setting this to `never` will not exec SQL.
- spring.sql.init.mode=NEVER
- spring.sql.init.schema-locations=classpath:schema.sql
- spring.sql.init.data-locations=classpath:data.sql
- spring.h2.console.enabled=true
- spring.h2.console.path=/h2
Advertisement
Add Comment
Please, Sign In to add comment