To fully use Spring, you have to understand how it works. Can you answer a question about services' scope? Fortieth second question of the quiz checks it.
You have the following service:
@Service
public class LicensingService {
public License getLicense(Long appId) {
...
}
}
How many instances will exist in the running web application? Choose the best answer.
- one for each request,
- one for each session,
- one for the Spring container,
- one for the whole application cluster
For the correct answer scroll down
.
.
.
.
.
.
The correct answer is: d.