我试图连接到我的表并插入一些数据。我们正在使用 oracle 数据库。在代码中,我使用了 oracle 瘦驱动程序 ojdbc14。我得到了
2018-12-27 11:08:58.810 INFO 16548 --- [ main] com.zaxxer.hikari.pool.PoolBase : HikariPool-1 - Driver does not support get/set network timeout for connections. (oracle.jdbc.driver.T4CConnection.getNetworkTimeout()I)
2018-12-27 11:08:58.810 ERROR 16548 --- [ main] com.zaxxer.hikari.pool.PoolBase : HikariPool-1 - Failed to execute isValid() for connection, configure connection test query (oracle.jdbc.driver.T4CConnection.isValid(I)Z).
Run Code Online (Sandbox Code Playgroud)
我对 spring boot 还很陌生,实际上是在尝试
做这个演示 - https://www.devglan.com/spring-jdbc/working-with-springboot-jdbctemplate
我所做的唯一更改是在我的 pom.xml 和 application.properties 中。
oracle 还需要什么东西吗?我应该如何解决这个问题?我在网络中看到的所有 oracle 示例都是使用 hibernate。是否需要包含 hibernate 方法?先感谢您。
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.1.1.RELEASE</version>
<relativePath/> <!-- lookup parent from repository --> …Run Code Online (Sandbox Code Playgroud)