0 votes
in Spring by

Which annotation is used to configure a DataSource in Spring?

a) @DataSource

b) @Database

c) @JdbcConfiguration

d) @Configuration

1 Answer

0 votes
by
d) @Configuration

Explanation:

The @Configuration annotation is used to indicate that the class contains Spring bean definitions, including for a DataSource.
...