I create a datasource like this in my Application.java:
@Bean
@ConfigurationProperties("datasource")
public DataSource dataSource() {
return DataSourceBuilder.create().build();
}
But it returns a managed datasource with pooling. due to the particular type of db I am working with, I want to disable the pooling.
What's the easiest way to do this?