WorksheetsSpring Boot, Spring Framework
Total questions: 17
Worksheet time: 13mins
What do we call the objects handled by Spring?
What is Spring Framework used for?
Creating graphical user interfaces
Managing database schemas
Building and managing enterprise applications
Generating test data
What is the core container module in the Spring Framework?
Spring Boot
Spring Web
Spring MVC
Spring IoC
Which embedded web server is supported by default in Spring Boot?
Tomcat
GlassFish
WildFly
Jetty
What is the purpose of the @Autowired annotation in Spring?
It defines a new bean
It injects dependencies automatically
It configures database connections
It specifies URL patterns
Which of the following is a microframework built on top of the Spring Framework?
Spring Data
Spring Boot
Spring Security
Spring Cloud
Object Relational Mapping
Which of the following is not a Spring Boot annotation?
@Controller
@RestController
@Service
@Data
Database model classes in Spring Data JPA must be annotated with this annotation to map the actual table to the class.
@Table
@Entity
@Column
@Repository
Primary key column of the model class must be decorated with this annotation?
@Column
@Id
@PrimaryKey
@OneToMany
In using Spring Data JPA, which built-in method is used to fetch all records from a table?
findAll()
findbyID()
getAll()
None of the above
An @Autowired annotation can be used to:
include a repository in a controller
include a service in a controller
include a component or bean in a controller
all of the above
Study the following web controller
and fill up the missing annotations.
for
no. 1 (a)
Study the following web controller
and fill up the missing annotations.
for
no. 2 (a)
Study the following web controller
and fill up the missing annotations.
for (reading ,path: /student)
no. 3 (a)
Study the following web controller
and fill up the missing annotations.
for (save a student, path: /student)
no. 4 (a)
Study the following web controller
and fill up the missing annotations.
for (parse the requestboy)
no. 5 (a)
