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

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



Duration: 2:17
890 views
16


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

Q1.Why Profiles in spring boot.?
To deal with multiple environments in development of application, ideally each environment has separate configuration/property files like Dev, QA, Pre-Prod and Prod. Spring has provision of Profiles to make to use of configuration specific to environment.

Q2. How do we define Properties in Spring Boot.?
You can define properties into a file called application. roperties in a Spring Boot Application, you can create file manually or make use of Spring Initializer. If property files exist in class path by default spring boot loads the properties into an application.

Q3.What is Spring Boot Actuator.?
Actuator is mainly used to expose operational information about the running application like monitoring our application, gathering metrics, understanding traffic and the state of our database. Actuator brings production- grade tools to an application without explicit implementation.

Q4. How to enable Actuator in Spring boot application?
To enable the spring actuator feature, we need to add the dependency from Group Id: org.springframework.boot and Artifact Id: spring-boot-starter-actuator in pom.xml.

Q5. What is @SpringBootApplication Annotation in Spring Boot.?
@SpringBootAppication comes from the base package of org.springframework.boot.autoconfigure and the combination of @Configuration, @EnableAutoConfiguration, and @ComponentScan annotations with their default attributes.

Q6. How to change Embedded tomcat server in Spring Boot.?
Default Embedded tomcat server can be changed to any of Jetty, Undertow and Reactor servers by changing the default dependency to specific dependency in pom.xml and also by mentioning exclude option to particular dependency.

Q7. How to use Request Mapping and Get Mapping.?
Request Mapping can be used with GET, POST, PUT, and many other request methods using the method attribute on the annotation. Whereas Get Mapping is only an extension of Request Mapping which helps you to improve on performing the Get request.

Q8. What is the use of Spring Boot starters.?
Spring Boot starters are set of dependency descriptors can be added as dependencies to spring boot application and by default spring provides various starters which helps in rapid application development.

Q9. What is thyme leaf in Spring Boot.?
Thyme leaf is a server-side Java template engine for web applications which can integrate with spring framework by adding the spring-boot-starter-thymeleaf starter as dependency in pom file.

Q10. How to make use/available Custom Application Configuration in Spring Boot.?
Custom Application Configuration in Spring Boot by using the @Value annotation, but with this all the configuration values will be distributed throughout the application instead use @ConfigurationProperties by defining configuration component.




Other Videos By Durga Software Solutions


2021-11-06REAL TIME PROJECT with Full Stack Data Science (FREE Workshop) Online Training @ DURGASOFT
2021-11-06Cyber Security (FREE Workshop) Online Training @ DURGASOFT
2021-11-06SALESFORCE CRM Online Training @ DURGASOFT
2021-11-06New Batches in Online Training @ DURGASOFT
2021-11-06AWS Online Training @ DURGASOFT
2021-11-06Personality Development Class Live Stream by Durga Sir
2021-11-06AWS tutorials || Demo - 2 || by Mr. Lakshmi Rao On 06-11-2021 @9:30AM IST
2021-11-06DEVOPS with AWS tutorials || Demo - 2 || by Mr. Lakshmi Rao On 06-11-2021 @8:30AM IST
2021-11-06GIT For Devops YouTube Live Stream by Durga Sir
2021-11-06UI Technologies tutorials || Demo - 3 || by Mrs. Swetha On 05-11-2021 @9PM IST
2021-11-05Java Spring Boot & Microservices | Java Spring Boot & Microservices Interview Questions Set - 1
2021-11-05CORE JAVA + ADV. JAVA tutorials || Demo - 5 || by Mr. Ram On 05-11-2021 @5PM IST
2021-11-05DJANGO tutorials || Demo - 4 || by Mr. Mohan Reddy On 05-11-2021 @7PM IST
2021-11-05Nagoor Babu Sir Courses on Udemy
2021-11-05Exception Handling In Python 3 - try, except, else, finally, raise by Durga Sir
2021-11-05Python Flow Control Youtube Live Stream By Durga Sir
2021-11-05Linux with Sheell Programming YouTube Live Stream by Durga Sir
2021-11-05AWS tutorials || Demo - 3 || by Mr. Srinivas On 05-11-2021 @3:30PM IST
2021-11-05ORACLE 19c Online Training @ DURGASOFT
2021-11-05POWER BI (FREE SQL SERVER) Online Training @ DURGASOFT
2021-11-05Q10. How to make use/available Custom Application Configuration in Spring Boot?



Tags:
durga
durga sir
durgasoft
interview
questions
java
software
training