Spring Boot Quiz (Set 10) Spring Boot (Set 10) 1 / 10 What is the annotation used to return a JSON response from a RESTful controller? '@ResponseBody' '@JsonResponse' '@RestController' '@Controller' 2 / 10 What is the annotation used to map a HTTP request to a method in a RESTful controller? '@PostMapping' '@RequestMapping' '@GetMapping' '@RequestMapping(method = RequestMethod.GET)' 3 / 10 Which annotation is used to create a RESTful controller in Spring Boot? '@Controller' '@RequestMapping' '@GetMapping' '@RestController' 4 / 10 Which command is used to run a Spring Boot application from the command line? 'mvn spring-boot:run' 'java -jar spring-boot-application.jar' 'gradle bootRun' 'java -cp spring-boot-application.jar com.example.Application' 5 / 10 What is the property used to set the default profile in Spring Boot? spring.profiles.active spring.profiles.default spring.profiles spring.profile 6 / 10 Which annotation is used to autowire a bean in Spring Boot? '@Resource' '@Autowired' '@Inject' '@Component' 7 / 10 What is the default port for the embedded Tomcat server in Spring Boot? 8000 9000 9090 8080 8 / 10 What is the recommended way to start a Spring Boot application? Using the 'main()' method in the 'Application' class Using the 'SpringApplication' class Using the 'SpringBootServletInitializer' class Using the 'SpringBootJUnitRunner' class 9 / 10 Which of the following is not a feature of Spring Boot? Auto configuration Embedded Tomcat server Spring Data support Spring Security support 10 / 10 What is Spring Boot? A web framework for Java A microservices framework for Java A framework for building RESTful APIs A framework for building Java applications Your score isThe average score is 0% 0% Restart quiz