如果您使用带有 Maven 的 Spring Boot,请使用以下内容更新您的 application.properties
spring.datasource.url:jdbc:firebirdsql://localhost:3050/C:\\firebird\\firebird.GDB
spring.datasource.driverClassName:org.firebirdsql.jdbc.FBDriver
spring.datasource.username:SYSDBA
spring.datasource.password:masterkey
spring.jpa.hibernate.ddl-auto:update
spring.jpa.show-sql: true
spring.jpa.properties.hibernate.format_sql=true
Run Code Online (Sandbox Code Playgroud)
并记住相应地设置您的 gdb 位置、用户名、密码。
并在 pom.xml 中添加以下依赖项
<dependency>
<groupId>org.firebirdsql.jdbc</groupId>
<artifactId>jaybird-jdk18</artifactId>
<version>2.2.12</version>
</dependency>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
5564 次 |
| 最近记录: |