mybatisplus + oracle + spring boot遇到的一些问题

1、pom里面依赖

mybatis-plus-boot-starter 3.5.3,

ojdbc6,

springboot 2.2.2.RELEASE

在使用到oracle的字段涉及到Date, 报错

Error attempting to get column 'xxx' from result set. Cause: java.sql.SQLException: error

百度很多方法有的需要重写保存和更新方法,写注解,Date转String,试了很多不好使,最后升级oracle依赖解决。

复制代码
<!-- 集成Oracle -->
<dependency>
    <groupId>com.oracle.database.jdbc</groupId>
    <artifactId>ojdbc8</artifactId>
    <version>21.5.0.0</version>
</dependency>
<!-- 集成Oracle字符集 -->
<dependency>
    <groupId>com.oracle.database.nls</groupId>
    <artifactId>orai18n</artifactId>
    <version>21.5.0.0</version>
</dependency>
相关推荐
ruleslol1 小时前
SpringBoot面试题03-BeanFactory
spring boot
研究司马懿2 小时前
【ETCD】ETCD常用命令
网络·数据库·云原生·oracle·自动化·运维开发·etcd
刘一说3 小时前
深入理解 Spring Boot 中的数据库迁移:Flyway 与 Liquibase 实战指南
数据库·spring boot·oracle
一叶飘零_sweeeet3 小时前
SpringBoot 集成 RabbitMQ
spring boot·rabbitmq·java-rabbitmq
August_._3 小时前
【MySQL】SQL语法详细总结
java·数据库·后端·sql·mysql·oracle
知兀4 小时前
【Spring/SpringBoot】<dependencyManagement> + import 导入能继承父maven项目的所有依赖,类似parent
spring boot·spring·maven
郝开5 小时前
Spring Boot 2.7.18(最终 2.x 系列版本):版本概览;兼容性与支持;升级建议;脚手架工程搭建
java·spring boot·后端
清水6 小时前
Spring Boot企业级开发入门
java·spring boot·后端
Q_Q5110082857 小时前
python+django/flask的校园活动中心场地预约系统
spring boot·python·django·flask·node.js·php
水冗水孚7 小时前
类比前端知识来学习Java的Spring Boot实现MySql的全栈CRUD功能——搭配Svelte+Vite
spring boot·svelte