Top 50 Spring Interview Questions

Upasana | September 30, 2020 | 2 min read | 1 views


Spring Core

Spring Web MVC

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() and getOne() 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:
  1. Multi-threading Java Interview Questions for Investment Bank
  2. Sapient Global Market Java Interview Questions and Coding Exercise
  3. Top 50 Java Interview Questions for Freshers
  4. BlackRock Java Interview Questions
  5. Cracking core java interviews - question bank
  6. ION Trading Java Interview Questions
  7. Hibernate & Spring Data JPA interview questions

Recommended books for interview preparation:

Find more on this topic: