Top 50 Spring Interview Questions
Upasana | September 30, 2020 | 2 min read | 1 views
Spring Core
-
What is Dependency Injection
-
What are different Bean Scopes?
-
What is Spring Bean Lifecycle?
-
Which one is better - setter based injection or the constructor injection?
-
Are singleton beans thread-safe?
-
How will you retry a failed method call using Spring retry? Lets say sending an email fails, how it can be retried again automatically.
-
How will you handle unresolvable circular dependency in spring dependency injection?
Spring Web MVC
-
What is role of Dispatcher Servlet?
-
How to log method execution time in Spring MVC using Interceptor?
-
What is difference between @Controller, @Component, @Repository, and @Service Annotations in Spring?
-
What is a ViewResolver?
-
How will you ensure that slow i/o operations at controller layer do not exhaust the servlet container threads?
-
Deferred Result and Async Handling of web requests.
-
What format should i send date from Server to Client so that time zone information is not lost?
Spring Data
-
How to use Projections to fetch the limited content from database?
-
How to send email only if database transaction is successful?
-
What is @NoRepositoryBean? When will you use it?
-
How to modify a record in database using
update
query? Give an example. -
What is difference between
findOne()
andgetOne()
method of Spring Data JPA Crud Repository?
Spring Security
-
What is CSRF Protection mechanism?
-
What is difference between ignoring a path for web security vs permit all on a Path?
-
What is Spring Security Architecture, explain using Diagram.
-
What is difference between authentication and authorization?
-
How does OAuth2 works?
-
Explain adaptive one way Hashing functions for storing a password
-
Support for multiple Authentication providers in single spring boot application using spring security
Spring Boot
-
What is Spring Boot and what are its advantages?
-
How to enable Cache Busting?
-
How to restrict Spring Boot app on certain ipaddress only? lets say localhost.
-
Exception handling in Spring Boot
Top articles in this category:
- Multi-threading Java Interview Questions for Investment Bank
- Sapient Global Market Java Interview Questions and Coding Exercise
- Top 50 Java Interview Questions for Freshers
- BlackRock Java Interview Questions
- Cracking core java interviews - question bank
- ION Trading Java Interview Questions
- Hibernate & Spring Data JPA interview questions