Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.
Which two statements are correct regarding auto-configuration of DataSource and JdbcTemplate beans given a Spring Boot application with only these two dependencies? (Choose two.)
A.
A DataSource bean will not be auto-configured.
B.
A JdbcTemplate bean will not be auto-configured.
C.
A JdbcTemplate bean will be auto-configured.
D.
A DataSource bean will be auto-configured only if a JdbcTemplate bean is explicitly defined.
CE is valid answer. Because spring boot does this auto-configurations based on those dependencies under the hood, you do not need to define them explicitly.
upvoted 1 times
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
2211094
6 days, 17 hours ago