Which statement best summarizes Spring Boot’s data access support?
4 phương ánCó giải thích
Các phương án trả lời
Chọn một phương ánLời giảiChọn phương án để mở
Đáp án đúng: "It offers seamless integration with relational databases, NoSQL stores, and JPA". Spring Boot hỗ trợ truy cập dữ liệu rất rộng: có starter cho JDBC với JdbcTemplate, cho Data JPA với Hibernate, cho các kho NoSQL như MongoDB, Redis, Cassandra, và tự cấu hình DataSource, EntityManagerFactory hay client tương ứng dựa trên thư viện có trong classpath cùng thuộc tính trong application.properties, đều tích hợp với Spring Data. "It only supports relational databases via raw JDBC" sai vì ngoài JDBC thuần Spring Boot còn hỗ trợ JPA và NoSQL. "It excludes JPA to encourage NoSQL usage" sai vì JPA chính là một trong những lựa chọn chủ lực qua spring-boot-starter-data-jpa. "It requires a custom driver for each vendor and does not integrate with Spring Data" sai ở cả hai vế: Spring Boot dùng driver JDBC chuẩn của nhà cung cấp, thường tự nhận ra driver từ URL kết nối, và tích hợp chặt với Spring Data.
Cùng phần 3
Which annotation is used to define a Spring Boot main class?
@SpringBootApplication
public class AppStarter {
public static void main(String[] args) {
SpringApplication.run(AppStarter.class, args);
}
}Có lời giảiCâu hỏiWhich component provides automatic restart and LiveReload to speed up development?Có lời giảiCâu hỏiWhat is the benefit of Spring Boot's embedded servers?Có lời giảiCâu hỏiCả 18 câu của chủ đề18 câu
Xuất hiện trong 1 bộ đề
Đi tiếp từ đây