Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- spring.datasource.url=jdbc:h2:file:~/nomedobanco
- spring.datasource.username=login
- spring.datasource.password=senha
- spring.datasource.driverClassName=org.h2.Driver
- spring.jpa.database-platform=org.hibernate.dialect.H2Dialect
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-data-jpa</artifactId>
- </dependency>
- <dependency>
- <groupId>com.h2database</groupId>
- <artifactId>h2</artifactId>
- <scope>runtime</scope>
- </dependency>
- <dependency>
- <groupId>com.fasterxml.jackson.core</groupId>
- <artifactId>jackson-databind</artifactId>
- </dependency>
- @Id
- @GeneratedValue(strategy = GenerationType.AUTO)
- Long id
Add Comment
Please, Sign In to add comment