配置了configuration.xml以後提示找不到映射關係

在啓動類裏面單獨增長一個Bean便可解決mysql

@Bean
public DatabaseIdProvider getDatabaseIdProvider(){
  DatabaseIdProvider databaseIdProvider = new VendorDatabaseIdProvider();
  Properties properties = new Properties();
  properties.setProperty("Oracle1","oracle");
  properties.setProperty("MySQL","mysql");
  databaseIdProvider.setProperties(properties);
  return databaseIdProvider;
}
相關文章
相關標籤/搜索