已解决:jpaProperties.getHibernateProperties(new HibernateSettings());报错,Spring Boot 配置多数据源
程序员文章站
2022-04-13 14:09:02
...
项目中出现这个错误:jpaProperties.getHibernateProperties(new HibernateSettings());
其中getHibernateProperties报红,判断是新版本中更新了方法
解决:
@Autowired
private JpaProperties jpaProperties;
@Autowired
private HibernateProperties hibernateProperties;
private Map<String, Object> getVendorProperties() {
return hibernateProperties.determineHibernateProperties(
jpaProperties.getProperties(), new HibernateSettings());
}