stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Welcome to Spring Flashcards | StudBud
Explore
/
Welcome to Spring
Welcome to Spring
22 terms
·
StudBud Administration
·
99 plays
A compilation of #Spring questions and concepts
Flashcards
22 cards
F
Practice quiz
P
Host live
L
Questions
22
Answers
1
What is Spring?
An open-standard, XML based messaging protocol
A open source framework for enterprise level app development
An open source tool to perform continuous integration
An open source Java persistence framework that performs ORM
2
Spring MVC DispatcherServlet consults the ___ to call the appropriate Controller
ViewResolver
HandlerMapping
Controller
DispatcherServlet
3
What are the scopes of a Spring bean?
Session, Singleton, Transaction, Bean
Singleton, Session, Request, Prototype
Request, Session, Bean, Prototype
Prototype, Singleton, Session, Transaction
4
Which is not a bean scope in the Spring Framework?
Session
Factory
Prototype
Singleton
5
What is a Bean Factory?
A means for resolving text messages
A class in Spring that implements the Factory design pattern
Holds multiple Bean definition and instantiates upon request
A web GUI tool that allows access to Bean definitions
6
This annotation identifies the method as a request handler type for a given path
@RequestMapping
@Handler
@Path
@Controller
7
What is Spring MVC?
Allows for component scanning in applicationContext.xml
It is required for DI (Dependency Injection)
A fully featured MVC framework that is a module of Spring
A module that provides integration with Struts
8
Which is not a component of Spring MVC?
DispatcherServlet
RequestProcessor
ViewResolver
HandlerMapping
9
Dependency injection is a design pattern
that passes concrete instances during object creation
that creates an object making sure to only create one
that hides system complexity and provides a client interface
used to locate various services using JNDI lookup
10
Spring Web MVC Framework is designed around a ___ that handles all HTTP requests and responses
ViewResolver
Controller
DispatcherServlet
HandlerMapping
11
What is meant by autowiring?
Spring auto-locates a beans concrete class in the classpath
Spring auto-resolving your bean by inspecting BeanFactory
None of these...
Spring auto-defining the class dependency to be injected
12
ApplicationContext will pre-instatiate beans with the ________ bean scope
Prototype
Global Session
ApplicationContext never pre-instantiates beans
Singleton
13
Which Spring class is used to build HTTP request on the client side?
GetResource
Client
Resource
RestTemplate
14
One of these things is not like the other... and is also incorrect
@Transactional
@Dao
@Autowired
@Controller
15
Which is actually correct : Spring does NOT ___________
Provide enough modules to be considered a true framework
Allow for integration to an app at any point in development
Encourage tight coupling
Allow for transaction management
16
The BeanFactory provides eager instantiation, internationalization, and listener capabilities
False
True
17
What is the current core container in Spring?
WebContext
XMLBeanFactory
ApplicationContext
BeanFactory
18
What annotation in Spring MVC is used in REST to define the URI where resource can be accessed?
Produces
RequestMapping
PUT
WebService
19
The DispatcherServlet will take help from ___ to pickup the defined view for the request
ViewResolver
HandlerMapping
DispatcherServlet
Controller
20
What is meant by bean wiring?
Naming beans to locate in the Application-Context
Spring deploying beans to a Web servlet container
Creating associations between beans within Spring
Defining the concrete class dependency to be injected
21
Why use Dependency Injection over conventional development techniques?
Allows developers to utilize Springs autowiring capability
Provides for loose coupling
Allows the container to manage our dependencies
Using Spring DI tightly binds our app with the framework
22
A Controller class provides direct access to methods based on URL patterns and HTTP methods
True
False