title: Setting the Transaction Isolation Level through Spring Boot properties
body: <p>I have a spring boot application which I have configured most of the properties through the properties file. However, I was looking if there is a way to set the TRANSACTION_ISOLATION_LEVEL through the Spring boot properties. Could someone help me on this. </p>
  
  <p>I'm initializing the data source bean in the following way:</p>
  
  <pre><code>@Bean
  @ConfigurationProperties(prefix="spring.datasource")
  public DataSource dataSource() {
      return buildDataSource("spring.datasource");
  }
  
  private DataSource buildDataSource(String propPrefix) {
   Stirng driverClassName = env.getProperty(propPrefix + ".driver-class-name");
   return DataSourceBuilder.create()
          .driverClassName(driverClassName)
          .build();
  }
  </code></pre>
  
  <p>Could someone please help me on how to specify the TRANSACTION_ISOLATION_LEVEL either through properties or during the data source initialization. </p>