 Good morning friends. Welcome back to our channel. So today I'll be discussing about one of the important Feature of springboard that is actuator springboard actuator and what all inter equations that I have recently encountered on springboard actuator so Firstly the question whenever one like this has become a matter equation whenever you are saying that you have worked on springboard So people are first question that they are asking is how what is springboard actuator and what are its advantages? So coming to that springboard actuator is a sub-project of springboard framework It includes a number of additional features that helps us to monitor and manage the springboard application It contains the actuator in points which we can use HTTP or jmx in points to manage and monitor the springboard application If you want to get production-ready features in application We should use springboard application Springboard actuator or in a simple word springboard actuator is nothing but a sub-project when we are adding the Sub-project to our project using dependency in the form of dependency so this sub-project Which is springboard activator has its own endpoints it exposes it endpoints and using those endpoints We can monitor our project in live production or in live we can monitor our production it has different endpoints and Using those endpoints we can console like we can monitor our application So first thing like how can we first question is how can we conflict? Hello? Sorry second question. How can we configure this? Let me open my one of the springboard application and in the form dot xml We just need to have this dependency of springboard activator. So this is the dependency we need that's it once we have this dependency and run the application and in the and now When the application starts what all endpoints that get that gets enabled that would be a second question Because if you are saying you have worked on to check if you have really worked on springboard activator configuration You may encounter this question. So it has started. So there are different endpoints that that springboard activator Exposes right so the out of which one is health. So what are the default endpoints that get enabled here? That would be the question. So the default endpoints that get enabled are health and info only these two gets Enabled apart from this if I go with any other thing that is like E and V So we'll get an exception because by default this won't get enabled. So how can we? Enable this so go to our application. Let me stop my application Let me open application dot properties and I have commented out So this key value page should be configured this key should be configured saying management dot endpoints dot web dot exposure dot include star that means all So now let me restart the application Let me move Let's run as Java application So now let us see whether the environment endpoint has been enabled or not Yes, it got enabled earlier. You could see that there was an exception But now it got enabled in similar way. There can be anything mappings also. This is one more important endpoint I will discuss about this. So one of the important importance here is if you this mapping endpoint actually Exposes all the endpoints that the application is that spring boot application spring boot activator is exposing slow Let me let us see and open this json In some good format. Let me open json new firmware. Okay paste it Okay viewer go to context application mappings Dispatchers sublet see these are the 27 endpoints that this application is exposing So see if you open any out of this, this is mappings only. Okay fine. So this is cache. This is related to cache This is get Get operation related to heap dump Any other thing get tag related to info. So this we have used activator dot info. So from here we can get that Uh information like what all endpoints the application is Configuring so there can be one more question like I don't want all the endpoints I want only specific endpoints in that scenario what you can do. So you just comment out about this Explose include all and just uncomment this Just I kept it ready so that the entire The video should be short. So in this now I am just enabling health and mappings So let me save this stop the application Termit all this content you can mention any here. So you remember by default only health and info were Enabled now, let me start the application and see whether I can access the default info endpoint or not Let me there is one more important interview question here as well in this thing that I recently first and I was shocked a bit So let me go and hit info end point boom Error because we have not configured. So we cannot access it. Let me go with health again health and I'll mappings that we have configured so we can access only those two endpoints. So again here, uh role based Endpoints can I also be configured Uh as I have not worked on this I am not saying that but there is a situation where only this particular roles people Can access this activator endpoints as well So apart from that, there was one more question like can we uh overwrite application dot properties using activators? So yes, uh, there is one endpoint called refresh. So Using refresh endpoint and spring boot. Uh, sorry spring cloud combination. We can definitely do that I have not worked it on it and I am not explaining that thing. So that was that was one question So I answered the same thing as I haven't worked on spring cloud So I am not able I'm not sure but I know refresh will definitely do this And one more thing is can we update the loggers? Yes, we can update the loggers as well using a post operation and And we can do this. I have Somewhere I have written this as well Yeah here so using configuration level we can change it to anything here So I'm with this thing we can And this is this is a package level. So on the package on service package Uh, I am changing the log level. This is very handy when in the when it comes into higher environments This is very helpful. And these are the different Endpoints that I I was able to collect on google audit events What is the returns all the auto configuration candidates and reason why they why they were or were not applied Beans mappings and this this all things I will be Keeping this in the description as well of the video And one more important question that I told you was so recently I encountered I was facing one interview with What was the company name here? I forgot IV Comtech, I think IV Comtech So in that interview he was asking me what all things after banner getting printed What all things that gets printed on the console when we start a spring boot application? So honestly, I was not Aware of it. I know that at the end Application will be started and it will show the tomcat this line. I was aware of tomcat started on tomcat Tomcat started on 4 800. I know that and it will be Printed completed initialization. So only these two things I I know and I have said that What he was expecting me all these things like with that What will happen here? Actually it is checking the profile What is the profile? No profile configuration sets. So falling back to default properties tomcat initialized on this board Starting services starting sir starting satellite engine and all those things. He was expert expecting me to answer But I couldn't answer this So it's good to have an idea on this as well So this was about the interview questions on spring boot activator that I have encountered in my recent interviews and That it might be helpful to you as well So that's it in this video as of now and thank you for watching this video