解决办法参考:
https://blog.csdn.net/deniro_li/article/details/80799947
下面是配置文件中连接数据库的信息,且已经成功连接。并且表存在,但是是跟mysql创建表时一样:表名和字段名均是小写
spring.datasource.oracle.jdbc-url=jdbc:oracle:thin:@localhost:1521:orcl spring.datasource.oracle.username=ZMX spring.datasource.oracle.password=zmx spring.datasource.oracle.driver-class-name=oracle.jdbc.driver.OracleDriver spring.datasource.oracle.maximum-pool-size=5
控制台一直报如下错误:
2020-04-24 20:56:21.642 ERROR 23432 --- [nio-8083-exec-1] o.h.engine.jdbc.spi.SqlExceptionHelper : ORA-00942: 表或视图不存在
2020-04-24 20:56:21.651 ERROR 23432 --- [nio-8083-exec-1] c.e.e.controller.VIPGroupController : 出现异常:could not extract ResultSet; SQL [n/a]; nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet