springboot org.hibernate.MappingException: No Dialect mapping for JDBC type: -9

时间:2024-09-24 12:34:15

参考 https://www.cnblogs.com/luxd/p/8316243.html

https://www.cnblogs.com/s648667069/p/6478559.html

@Component
public class MyOracleDialect extends Oracle10gDialect {
public MyOracleDialect() {
super();
registerHibernateType(Types.NVARCHAR, StandardBasicTypes.STRING.getName());
}
}
spring.jpa.properties.hibernate.dialect=xx.MyOracleDialect