The Coolest SRPING BOOT Feature - Executable Jar (FAT JAR) | Introducing Spring Boot Maven Plugin
In this video we will go in-depth about Spring Boot’s maven plugin called Spring-Boot-Maven-Plugin. This plugin helps to build executable spring boot jar which can run without a web server. This FAT jar can be lunched with just a java -jar command and can help us to deploy our app without an external server.
This helps to lunch and deploy our code quickly in an efficient way.
Every jar’s are different with respect to the way they have been packaged. Eg.
Skinny - Only contains the File that you write in your editor. That’s it !
Thin - Contains all the above + the application direct dependencies (Library, drivers etc)
FAT / Uber Jar - Contains all the files that you write in your editor + Application dependencies + a runtime environment which is needed your application to run by itself.
In spring boot we deal with the FAT or Uber Jar. This helps to lunch our app without any external server like tomcat.
Let’s get started with this spring boot tutorial and I will make sure this is beginner friendly.
Timestamp
__________
The Spring Boot special JAR - 00:00
Building a spring boot App - 04:27
no main manifest attribute - 11:44Introducing Spring Boot Maven Plugin - 13:50
Running spring boot app from command line - 17:39
Java jar command with program arguments 20:09
Normal Java JAR vs Spring Boot FAT Jar - 22:04
What’s inside a thin jar - 24:16
Analysis - No main manifest - 25:47
What’s inside a FAT jar -29:45
What’s Next - 35:23
I will make sure that we will not download any ready made spring bot project from spring initializr website rather we are going to perform everything from scratch.
For more free/paid courses visit
www.seleniumex...
#SpringBoot #SpringBootFramework #SpringBootTutorial
For More free/paid courses visit
www.seleniumexpress.com
LINKS AND FREE LEARNING RESOURCES
========
Watch my new mock interview series for java developers
• Java interview questio...
Watch Spring boot Hot topics
• @Reposicotry Vs @Servi...
Java Interview / Question and Answer series
• Java collections inter...
Explain spring Bean Lifecycle
• REAL-TIME: Spring Bean...
spring core
• Spring framework tutor...
spring mvc
• Spring MVC course intr...
spring mvc intermediate
• [INTERMEDIATE] Spring ...
Spring JDBC
• Spring JDBC Course Pre...
spring live project
• #1 Build and Deploy A ...
SPRING SECURITY COURSE[NEW]
• Spring Security Course...
For more courses visit
www.seleniumex...
Any time you are getting stuck with issues, Feel free to ask for support.
You can send mail to seleniumexpress@gmail.com
you can ping me on my Facebook page
/ seleniumexpress
Make sure to join my private Facebook page (Ask me here)
“SeleniumExpress - Support"
/ 187000222361579
you can ask for support in my website forum
www.seleniumex...
Subscribe to my youtube channel
/ @seleniumexpress
Follow me on Insta
/ selenium_express
Пікірлер: 95
Your communication and the way you explain are drastically changed, I really impressed this change. I have been learning to much things from you....
Understood everything.. Thanks a lot!
amazing bro just take spring boot course to next level
Your content is really good easy to understand and very rare over the KZread.
Thank you Abhilash, greetings from the Philippines.
You are one of the best instructors out there
Bro you really are a life saver. Your detailed explanation is very easy to understand. I really wish to master springBoot so please add more videos on springBoot❤❤. Thankyou for your efforts.
Hi Sir ji..You are truly blessed with great Knowledge and wisdom..😇 Thanks a lot for your videos, which are really helpful
All Good Abhilash Sir ji
@SeleniumExpress
Жыл бұрын
You are halfway through. That's makes me happy ☺️
abhilash in microservices how a client knows about which end point it should hit the eureka server either eureka/apps or eureka/apps/delta? it is the server can know right
Thanks for sharing... very good explanation.
Understood Everything thanks for the video!!!
I am very confusing between spring and springboot. In spring boot we simply create bean by using autowire annotation and component annotation and in spring we can create bean by xml , cofig class and in xml we can use constructor arg property then two type of dependency injection are there in spring constructor injection and property injection i am confuesing which one is for springboot and which one is for spring how depencncy injection work in spring boot
Hi Sir jii, really all good😊
really helpful
All good!!
I need your help , i am getting a class not found exception ….what to do
Amazing content sir. Sir i have a request if possible please create some video on one to one , many to many mapping concepts in data jpa. it will be helpfull.
all good @Abhinash.
Very clear bro , please post atleast 2 videos in a week .. when will be the next video uploaded?
Great Content Abhilash Thanks....
@SeleniumExpress
Жыл бұрын
Thanks, Sekhar !
🎉 nice explanation 🎉
I love this detailed video
mind blowing sir jee
Thank You sir
All good!
Everything is good!! but needed shorter version please
All good 👍
I love these detailed videos
@SeleniumExpress
Жыл бұрын
Thank you, Ayush !
Plz make a video on spring Restful APIs
Hi Abhilash, I created springboot jar like this but not using the plug in that you have mentioned. Is it possible with Maven compiler plugin.. If we use spring initializer to create springboot project, will it take care to add plug-in that you have mentioned
@SeleniumExpress
Жыл бұрын
Hi Nanda, When you download a spring Boot project from spring Initializer, this plugin will automatically come. As we have built this project from scratch , I didn't have this plugin.
@jnagavarshith48
Жыл бұрын
@@SeleniumExpresshi Abhilash thanks for the great content as usual. But In my case jar is only getting created when I create the project from scratch using maven if use spring initialiser tha jar is not getting created but instead when I use mvn install command to create the jar the project is directly running but there is no jar in the target folder.
@jnagavarshith48
Жыл бұрын
Please do reply on this when u have time. Thank you very much for the lovely content again 🎉
How to access resources it shows file not found can u please help me with a video thank you
All good
Hi, please make one dedicated video on core java only. Thank you ❤
All done
Thank you so much brother❤
Please make a videos on Dsa with java
Even I have attached an interview in 2022 this question was asked to me interviewer company TCS
All Good
Great content, thanks!
@SeleniumExpress
Жыл бұрын
Thanks,Ashwin !🙂
🔥
delicious content, you are the best
@SeleniumExpress
Жыл бұрын
Thanks, Patrick. 🙂
all good
Sir please upload the video for this week
Another feather in cap.. kudos to you.. One request.. please make a more detailed and dedicated video on @EnableAutoConfiguration annotation.. as I m still confused..as IOC is created by run method..then what's the use of it?? Also, does any spring boot application cannot run without run method??... Even FAT Kars?
Thanks Abhi ❤
abhilash all good
Your content is really good and easy to understand. Love your videos. I am facing a weird problem for several days and I am not finding any solution for it. Can you please make a video on that? I created a spring boot app using thymeleaf as view technology. When I run it from IDE, it works perfectly fine. But when I run it from cmdlline using java -jar .. cmd then when I open the app in browser I get "org.thymeleaf.exceptions.TemplateInputException: Error resolving template [/fragments/header], template might not exist or might not be accessible by any of the configured Template Resolvers (template: "home" - line 10, col 7)" this error. Why thymeleaf templates are not getting resolved when run from cmdline but works fine from IDE?
Abhilash how can i master concepts like you in depth .some suggestions please I'm biggest fan of ur videos.i completed almost all youtube videos of urs
Good❤❤
please make a 4k videos
Amazing content and explaination. Thank u for the video, one small suggestion is please use light theme as it is more legible in small screens as well😊
@SeleniumExpress
Жыл бұрын
Thank you, Chaitanya ! Sure, I will keep your suggestion in mind. 😊
If I will use spring initializer. This plugin comes autmoatically with zip project?
@SeleniumExpress
Жыл бұрын
Yes, This plugin will come with your spring Boot project when download from spring Initializer.
Jar file not read property file? For port number? Because app run 9090 and jar run 8080 or manual u change?
@SeleniumExpress
Жыл бұрын
I didn't set server port to 9090 through properties file. If you watch the last session, you will see that I have changed the server port through the run configuration. That's why when I run the application through ide, my app was running on port 9090. But when I ran it through the Java -jar command, it picks the default Port 8080. If you have kept server.port to 9090 in the properties file, it will pick the same when lunching the jar through command line.
@immortalhuman7085
Жыл бұрын
I think through var args he passed the port to application to start on that port. We can pass spring valid statements like server.port with program args using command line.
all good!! 😀
Does manifest file need to have any order for its contents?
Wonderful.
@SeleniumExpress
Жыл бұрын
Thank you,Omkar !
Sir if u have paid course please tell me extremely great
Sir when we except the next video.
@SeleniumExpress
Жыл бұрын
Today
First Comment 🤩, best content
@SeleniumExpress
Жыл бұрын
Thank you ❤️
How you got bhaiya so much deep knowledge about whole java and framework...pls reveal the truth🙏🙏
@UmarFarooq-un6jm
Жыл бұрын
Books , they are always going to give you better understanding than a video tutorial
How I manage the logs of application when run like this
@SeleniumExpress
Жыл бұрын
Your logs will be on the terminal. But with some configuration you can store your logs inside a folder. For eg we can set a rolling policy.
@harishankermishra6568
Жыл бұрын
@@SeleniumExpress could you please explain this!🙏
Next video when will you make that bro
@SeleniumExpress
Жыл бұрын
Eyeing for the Next Sunday.
Great insights❤❤
@SeleniumExpress
Жыл бұрын
Thank you ❤
All good!
All done
All good
All Good
all good
All good
All good
All good
@SeleniumExpress
Жыл бұрын
Glad to hear,Srikanth. Did you complete the entire session? Let me know if the second half made sense 🙂
@srikanthkolisetty5921
Жыл бұрын
@@SeleniumExpress yes I had completed the entire session and the second alf made sense. Abilash would like to connect with you over linkedin
all good