需要指定oracle的驱动
现在是 实体中时间类型为
LocalDateTime ,我用oracle数据库 查出来报错 (Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object; is abstract, 具体错误如下: 2019-08-01 16:44:57.854 INFO 19700 --- [ XNIO-1 task-4] com.zaxxer.hikari.HikariDataSource : HikariPool-2 - Starting... 2019-08-01 16:44:57.905 INFO 19700 --- [ XNIO-1 task-4] com.zaxxer.hikari.pool.PoolBase : HikariPool-2 - Driver does not support get/set network timeout for connections. (oracle.jdbc.driver.T4CConnection.getNetworkTimeout()I) 2019-08-01 16:44:57.907 INFO 19700 --- [ XNIO-1 task-4] com.zaxxer.hikari.HikariDataSource : HikariPool-2 - Start completed. 2019-08-01 16:44:58.219 DEBUG 19700 --- [ XNIO-1 task-4] o.s.s.user.mapper.UserMapper.getUser : ==> Preparing: SELECT a.id AS "id", a.TENANT_CODE AS "tenantCode", a.create_user AS "createUser", a.update_user AS "updateUser", a.status AS "status", a.birthday AS "birthday", a.is_deleted AS "isDeleted", a.account AS "account", a.name AS "name", a.email AS "email", a.password AS "password", a.real_name AS "realName", a.phone AS "phone", a.sex AS "sex", a.role_id AS "roleId", a.dept_id AS "deptId" FROM blade_user a WHERE a.tenant_code = ? AND a.account = ? AND a.password = ? AND a.is_deleted = 0 2019-08-01 16:44:58.672 DEBUG 19700 --- [ XNIO-1 task-4] o.s.s.user.mapper.UserMapper.getUser : ==> Parameters: 000000(String), admin(String), 90b9aa7e25f80cf4f64e990b78a9fc5ebd6cecad(String) 2019-08-01 16:44:58.748 INFO 19700 --- [ XNIO-1 task-4] o.s.core.boot.logger.RequestLogAspect : ================ Response Start ================ <=== GET: /user/user-info (3897 ms) ================ Response End ================ 2019-08-01 16:44:58.764 ERROR 19700 --- [ XNIO-1 task-4] o.s.c.l.e.BladeRestExceptionTranslator : 服务器异常 org.springframework.web.util.NestedServletException: Handler dispatch failed; nested exception is java.lang.AbstractMethodError: Method oracle/jdbc/driver/OracleResultSetImpl.getObject(Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object; is abstract at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1054) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:942) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1005) at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:897) at javax.servlet.http.HttpServlet.service(HttpServlet.java:645) at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:882) at javax.servlet.http.HttpServlet.service(HttpServlet.java:750) at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:74)
LocalDateTime 对应数据库oracle的哪种类型? 有的说是oracle 驱动版本低,请大佬解答!! 谢谢
扫一扫访问 Blade技术社区 移动端