The Coolest SRPING BOOT Feature - Executable Jar (FAT JAR) | Introducing Spring Boot Maven Plugin
HTML-код
- Опубликовано: 8 июн 2024
- 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.seleniumexpress.com
#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.seleniumexpress.com
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.seleniumexpress.com
Subscribe to my youtube channel
/ @seleniumexpress
Follow me on Insta
/ selenium_express
Your communication and the way you explain are drastically changed, I really impressed this change.
I have been learning to much things from you....
Your content is really good easy to understand and very rare over the RUclips.
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.
Thank you Abhilash, greetings from the Philippines.
You are one of the best instructors out there
Hi Sir ji..You are truly blessed with great Knowledge and wisdom..😇 Thanks a lot for your videos, which are really helpful
Thanks for sharing... very good explanation.
Understood Everything thanks for the video!!!
amazing bro just take spring boot course to next level
I love this detailed video
🎉 nice explanation 🎉
I love these detailed videos
Thank you, Ayush !
Great Content Abhilash Thanks....
Thanks, Sekhar !
really helpful
Thank you so much brother❤
mind blowing sir jee
Great content, thanks!
Thanks,Ashwin !🙂
all good @Abhinash.
delicious content, you are the best
Thanks, Patrick. 🙂
All good!!
Thank You sir
all good!! 😀
Hi Sir jii, really all good😊
Thanks Abhi ❤
All Good Abhilash Sir ji
You are halfway through. That's makes me happy ☺️
Very clear bro , please post atleast 2 videos in a week .. when will be the next video uploaded?
All good!
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 👍
Wonderful.
Thank you,Omkar !
All done
Hi, please make one dedicated video on core java only.
Thank you ❤
First Comment 🤩, best content
Thank you ❤️
All good
Great insights❤❤
Thank you ❤
All Good
all good
Good❤❤
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
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?
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
Please make a videos on Dsa with java
🔥
Everything is good!! but needed shorter version please
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😊
Thank you, Chaitanya ! Sure, I will keep your suggestion in mind. 😊
Plz make a video on spring Restful APIs
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
abhilash all good
Even I have attached an interview in 2022 this question was asked to me interviewer company TCS
Does manifest file need to have any order for its contents?
How to access resources it shows file not found can u please help me with a video thank you
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
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.
@@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.
Please do reply on this when u have time. Thank you very much for the lovely content again 🎉
Sir please upload the video for this week
If I will use spring initializer. This plugin comes autmoatically with zip project?
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?
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.
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.
please make a 4k videos
How you got bhaiya so much deep knowledge about whole java and framework...pls reveal the truth🙏🙏
Books , they are always going to give you better understanding than a video tutorial
Sir if u have paid course please tell me extremely great
How I manage the logs of application when run like this
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.
@@SeleniumExpress could you please explain this!🙏
Sir when we except the next video.
Today
Next video when will you make that bro
Eyeing for the Next Sunday.
All done
All good!
All good
All Good
all good
All good
all good
All good
Glad to hear,Srikanth. Did you complete the entire session? Let me know if the second half made sense 🙂
@@SeleniumExpress yes I had completed the entire session and the second alf made sense.
Abilash would like to connect with you over linkedin