Java Spring Boot & Microservices | Java Spring Boot & Microservices Interview Questions Set - 2

Subscribers:
842,000
Published on ● Video Link: https://www.youtube.com/watch?v=bYDxmTIGY0w



Duration: 3:00
441 views
10


Q11. How to Change the Default Port in Spring Boot?

Default port cane be changed in 3 ways first, by defining server.port in application properties file second, by setting server.port in SpringBootApplication main class third, by setting server.port while application running as jar file from command line.


Q12. How to configure properties in Spring Boot Application?

Configuration of properties in Spring Boot Application can be done either by using Property or YAML file. YAML is more readable for hierarchical configuration data.

Q13. What is the advantage with DevTools in Spring Boot.?

DevTools in Spring Boot will improve the development time while working on Spring Boot applications. While development spring boot application will restart automatically for any code changes, to get this feature spring-boot-devtools dependency needs to be added.


Q14. How to ignore null values in JSON response in spring boot?

To ignore null values in JSON response, use @JsonIgnore annotation. The field can be ignored while reading JSON into Java objects as well as while writing Java objects into JSON.

Q15. Basic Features of Spring Boot.?
Spring Boot has basic features like set of dependencies as starters, and the capability of providing Auto-Configuration and Spring Initializer from Spring core modules.


Q16. How to avoid exclude auto-configuration classes in Spring Boot.?

Spring Boot provided the flexibility to avoid one or more auto-configuration classes with the help of exclude attribute or attribute Name(which are not in class path) and adding the property in property file like spring.autoconfigure.exclude.

Q17. What is the use of Spring Initializer in Spring Boot.?

Spring Boot Initializer helps in rapid application development by providing Spring Boot Project with all required project structure/skeleton including dependencies without creating the project structure explicitly.

Q18. What is Live Reload in Spring Boot?

Live Reload is a spring-boot-devtools module that includes Live Reload server to trigger a browser refresh when a resource is changed. Live Reload server extensions are available freeware for Firefox, Chrome, etc.

Q19. How to Handle Exceptions in Spring Boot Application.?

Exceptions in the Spring Boot Application can be handled by using @ControllerAdvice and @ExceptionHandler to create generic or application specific exceptions. @ControllerAdvice returns the created exception as response to represent the exception type.

Q20. How do you generate a Spring Boot Application?

One of the ways to generate the Spring Boot based Project is using Spring Initializer by visiting spring.io by selecting appropriate parameters and another way is to use Spring Tools 4 for Eclipse (IDE) and generate a Spring Boot Project direct inside IDE.




Other Videos By Durga Software Solutions


2021-11-19String, StringBuffer & StringBuilder for JAVA Certification & Interviews by Durga Sir
2021-11-19AWS tutorials || Demo - 4 || by Mr. Srinivas On 19-11-2021 @7PM IST
2021-11-19SALESFORCE CRM tutorials || Demo - 5 || by Mr. Sai On 19-11-2021 @6PM IST
2021-11-19.NET tutorials || Demo - 5 || by Mr. Mohan Reddy On 19-11-2021 @4PM IST
2021-11-19PYTHON + DJANGO tutorials || Demo - 4 || by Mr. Wilson On 19-11-2021 @6PM IST
2021-11-19ORACLE 19c tutorials || Demo - 5 || by Mr. Murali On 19-11-2021 @4PM IST
2021-11-19C - LANGUAGE Online Training @ DURGASOFT
2021-11-19TALLY PRIME 2.0 Youtube Live Stream by Durgasoft Realtime Expert
2021-11-19ACCOUNTING PACKAGE TALLY PRIME 2.0 (FREE Seminar) Online Training @ DURGASOFT
2021-11-19HADOOP with SPARK & SCALA Online Training @ DURGASOFT
2021-11-19Java Spring Boot & Microservices | Java Spring Boot & Microservices Interview Questions Set - 2
2021-11-18Nagoor Babu Sir Courses on Udemy
2021-11-18CORE JAVA tutorials || Demo - 3 || by Mr. Ram On 19-11-2021 @10AM IST
2021-11-18DJANGO tutorials || Demo - 2 || by Mr. Wilson On 19-11-2021 @9AM IST
2021-11-18ADV. JAVA tutorials || Demo - 3 || by Mr. Ram On 19-11-2021 @8AM IST
2021-11-18PYTHON (CORE & ADVANCED) Online Training @ DURGASOFT
2021-11-18Learn Python - Full Fundamental Course for Beginners by Durg Sir
2021-11-18LINUX Administration tutorials || Demo - 2 || by Mr. Srinivas On 18-11-2021 @6PM IST
2021-11-18CORE JAVA tutorials || Demo - 3 || by Mr. Nageswar Rao On 18-11-2021 @8PM IST
2021-11-18Cyber Security tutorials || Demo - 3 || by Mr. Shoaib Ahmed On 18-112021 @8PM IST
2021-11-18Python String Coding Interview Questions In Simple Way by Durga Sir



Tags:
durga
durga sir
durgasoft
interview
questions
java
software
training