use of org.jdbi.v3.spring5.JdbiFactoryBean in project cudami by dbmdz.
the class SpringConfigBackendDatabase method jdbi.
@Bean
public JdbiFactoryBean jdbi(DataSource ds, ObjectMapper objectMapper) throws Exception {
JdbiFactoryBean jdbiFactoryBean = new JdbiFactoryBean(ds);
List plugins = new ArrayList();
plugins.add(new SqlObjectPlugin());
plugins.add(new PostgresPlugin());
plugins.add(new DcCommonsJdbiPlugin());
plugins.add(new JsonbJdbiPlugin(objectMapper));
jdbiFactoryBean.setPlugins(plugins);
return jdbiFactoryBean;
}
Aggregations