CertyRush
Đang tải...
C CertyRush
Câu hỏi free preview

Câu 11: 2V0-72-22: Professional Develop VMware Spring

Refer to the exhibit. The above code shows a conditional @Bean method for the creation of a JdbcTemplate bean. Which two statements correctly describe the code behavior? (Choose two.)

Nội dung câu hỏi

Refer to the exhibit. The above code shows a conditional @Bean method for the creation of a JdbcTemplate bean. Which two statements correctly describe the code behavior? (Choose two.)

Minh họa câu hỏi

Các lựa chọn

Đáp án được giữ gọn theo nhãn A, B, C, D trong phần bình chọn tương tác.

  1. A. @ConditionalOnBean(name= “dataSource”) should be replaced with @ConditionalOnBean (DataSource.class) for greater flexibility. — đáp án hiện tại
  2. B. @ConditionalOnBean(name= “dataSource”) should be replaced with @ConditionalOnMissingBean (DataSource.class) for greater flexibility.
  3. C. The @Bean annotation should be removed.
  4. D. A JdbcTemplate bean will be created when the DataSource class is in the classpath but there is no DataSource bean.
  5. E. A JdbcTemplate bean will be created when a bean named dataSource has already been created. — đáp án hiện tại

Cộng đồng

0 bình luận công khai. Tên thành viên được ẩn một phần.

Chưa có bình luận. Mở giao diện tương tác để bắt đầu thảo luận.

Câu hỏi liền kề