[Kotlin] Adding the Hibernate dependencies to our project and creating the database
2023-09-14 09:00:46 时间
pom.xml:
<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>
Add Hibernate and h2 into our pom.xml.
application.properties:
spring.datasource.url=jdbc:h2:file:~/theater
spring.datasource.driverClassName = org.h2.Driver
spring.datasource.username = sa
spring.datasource.password =
spring.jpa.properties.hibernate.hbm2dll.auto = update
Open: localhost:8080/h2-cosnole in browser: modify accordingly
When click connect: See the database UI
相关文章
- 【错误记录】Kotlin 报错 ( Some kotlin libraries attached to this project were compiled with a newer kotlin )
- ORA-24093: AQ agent string not granted privileges of database user string ORACLE 报错 故障修复 远程处理
- ORA-00238: operation would reuse a filename that is part of the database ORACLE 报错 故障修复 远程处理
- ORA-00701: object necessary for warmstarting database cannot be altered ORACLE 报错 故障修复 远程处理
- ORA-01247: database recovery through TSPITR of tablespace string ORACLE 报错 故障修复 远程处理
- ORA-15294: SYSASM privilege not allowed on database instance ORACLE 报错 故障修复 远程处理
- ORA-16621: database name for ADD DATABASE must be unique ORACLE 报错 故障修复 远程处理
- ORA-16771: failover to a physical standby database failed ORACLE 报错 故障修复 远程处理
- ORA-16821: logical standby database dictionary not yet loaded ORACLE 报错 故障修复 远程处理
- Oracle 1003:Unlock the Power of Database Management(oracle1003)
- the cloudTaking Oracle to the Cloud: The Evolution of Database Systems(oracleisin)