Hibernate: create global temporary table HT_t_resources (id number(19,0) not null) on commit delete rows
2020-02-28 11:11:45.483 sszserver [main] ERROR druid.sql.Statement - {conn-110006, stmt-120000} execute error. create global temporary table HT_t_resources (id number(19,0) not null) on commit delete rows
java.sql.SQLException: ORA-00955: 名称已由现有对象使用
启动的时候报上面错误,经过排查是使用了@Inheritance(strategy = InheritanceType.JOINED)注解,在启动的时候他会创建HT_开头的临时表,就报错了。但异常是被hibernate捕获的,不应该被抛出。新建项目也有这个异常,但确实是被捕获的,控制台不会抛出。最后发现是我用了druid连接池,跟进源码发现使用了log4j,而我项目用的是logback。最后引入log4j问题解决。
compile ('log4j:log4j:1.2.11')
3万+



被折叠的 条评论
为什么被折叠?



