Spring Flashcards

1
Q

Caching

A

ehcache.xml
@EnableCaching
@Cacheable
@CacheEvict

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Bean scopes

A

The latest version of Spring framework defines 6 types of scopes:

singleton
prototype
request
session
application
websocket
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a session?

A

A session can be defined as a server-side storage of information that is desired to persist throughout the user’s interaction with the web site or web application.

Instead of storing large and constantly changing information via cookies in the user’s browser, only a unique identifier is stored on the client side (called a “session id”). This session id is passed to the web server every time the browser makes an HTTP request (ie a page link or AJAX request). The web application pairs this session id with it’s internal database and retrieves the stored variables for use by the requested page.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly