For configuring a DataSource programmatically in Spring Boot, you can create a @Bean of type _____.

  • javax.sql.DataSource
  • org.springframework.boot.datasource.DataSource
  • org.springframework.jdbc.datasource.DataSource
  • spring.datasource
To configure a DataSource programmatically in Spring Boot, you can create a @Bean of type javax.sql.DataSource or its Spring-specific equivalents. This allows you to define the data source properties and configure database connectivity in your application. The choice of the correct data source bean is crucial for proper database interaction in your Spring Boot application.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *