How to Configure and Create Spring Boot Project in IntelliJ IDEA Tutorial with Java JDK 2024

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey everyone so in this video I'll be showing  you how to download and install Intellij idea   and also how to set it up for spring boot so  for this we need to download Intellij idea and   as well configure Java and then only we will be  able to run our spring boot project so I'll be   showing you all these three in this video so let's  get started so first thing just go to Google and   type download Intellij idea you'll be getting the  first link as jet brains.com just click that and   in this website first thing you'll be having the  Intellij idea Ultimate Edition which is a paid   one and if you want to go with the free one just  scroll down and here we'll be having the Intellij   idea Community Edition this is for free and you  need to just click on download so the download is   getting started and it is about 664 MB in size so  just be patient so once the download is complete   just open the file yeah just click on yes and  you'll be getting the Intellij idea Community   setup just click on next and this is the default  location where this is going to get installed   which is in local disk C and program files if you  want to change the path you can change it I'm fine   with this I will just click on next and in this  we need to check this Intellij idea shortcut this   is good and update the path variable this is also  fine open as project folder this is fine and I am   going to use this for do Java purpose I'm not  going to do gradle or any other thing extra so   just click on this one if you want you can just  check on gradle or groovy depending upon your   use case just click on next and this is fine  just click on install so once the installation   is complete you'll be getting an option to restart  your system so if you want to restart it right now   you can just click on reboot and click on finish I  don't want to restart it now so I'll just click on   finish so after it is installed let me just go  to search and type for Intellij I'll be having   this one more here I'll just open it and we need  to click on do not import settings just click on   okay and we'll be getting the interface now so now  we are done with the installation of intj let's   just go and download and install Java jdk just go  to Google and type Java jdk download and you'll   be getting the first link as Java downloads just  click that it is from oracle.com and here we will   be having Java 20 and Java 17 and Java 20 is the  latest version of java the latest jdk version so   you can just go here scroll down you'll be having  it for different operating systems we are going to   download it for Windows just click on Windows and  here you'll be having MSI installer so just click   on that so it is about 158 MB in size so just be  patient till that so once the download is complete   just click on open you need to click on next and  you can just change the location if you want to   the default is fine for me so I'll just click  on next so the installation will begin that's it   so once the installation is complete you will be  getting this successfully installed message just   click on close so now we need to add our Java path  to the environment variables alright so just go   to the folder where you have installed Java so by  default it's going to be C program files Java jdk   20 and you'll be having this bin thing so you need  to copy till bin folder just control C just go to   search and type environment you'll be getting the  edit the system environment variables option just   click on open and in this you'll be having here  environment variables click that and under system   variables just click on path edit you need to  click on new and you to just paste this all right   you to have till bin folder and just click on  okay everywhere now just open your command prompt   I just zoom it so we need to run the command Java  --version and hit enter so here you can see that   I'm getting Java 20 which is the latest version  of java that we have installed right now so you'll   be getting this message if you have done the  installation process in a perfect way so in case   if you aren't getting this you must have made a  mistake in the path go to your browser and search   for spring initializer you'll be getting the first  link start. spring.io just select that and this is   going to contain our entire spring boot project  and we are going to configure the necessary   dependencies and as well the Java version over  here so first thing project is going to be Gradle   and groovy if you want Maven you can choose that  but I'm am comfortable with Gradle and next one   is going to be language I will choose Java and I  will leave it with a default spring boot version   and here we need to change the name of our project  okay we will be having this project metadata and I   will just name this as spring one and you can just  remove everything to Spring one and I'm fine with   the packaging jar and the Java version and next  most important thing is the dependencies so by   default we'll be using the spring web dependency  which is used for creating those points the post   put delete and fetch operations so we'll be using  the spring web dependency and depending upon   whether you are using MySQL or mongodb database  we'll be using that jpa or that particular driver   so for example for MySQL we are having the MySQL  driver and for mongodb we'll be having the mongoDB   driver so this is optional if you want you can  just install this so once you're done selecting   the necessary dependencies you can just click on  generate so it'll be getting downloaded as a zip   file so just go to your downloads and you need  to just extract this extract files so just click   on okay yeah so this is extracted and inside this  we will be having all our Java files over here so   we're having the Java thing right so now we  are good here so now let's just go and open   our Intellij idea so after opening Intellij idea  you'll be getting an interface like this we need   to just click on open and now you need to select  the folder where you have extracted our ZIP file   so in my case it is present under downloads so  I would recommend you to cut this particular   extracted file and paste it in some other  directory rather than having it in downloads so   once you have located that particular project just  expand this select the folder that is inside the   main folder so for example I'm having here two  spring one which one is the parent and another   one is the child folder so I would recommend  you to select the child folder all right just   select this and click on okay just click on trust  project it will take some time for the gradle to   load so it says gradle downloading gridle so  just be patient till then so once you don't   have any gradle processing over here what you to  do is just expand this Source folder expand main   expand Java and here you'll be having this spring  application one file just double click it and by   default you'll be having this run Icon over here  just click that and you need to just click on run   spring boot application main so at the top you'll  be having this spring one application just click   that and just click on this edit configurations  and here you can see if you don't have here Java   module over here if you just click this it will  be getting automatically configured if you if it   doesn't automatically detect that you need just  click on this and specify this but in most of the   cases it will get automatically configured so now  we are good and if I just now go here you can see   my spring boot application has started it says  Tomcat started on port 8080 which means that we   have successfully setup our spring application  with Intellij as well as Java so I hope you   would have found this video useful do check the  playlist of my channel I have done a lot of videos   in Spring boot MySQL mongoDB CRUD operations  check them out subscribe me thanks for watching
Info
Channel: United Top Tech
Views: 14,033
Rating: undefined out of 5
Keywords: spring boot tutorial, spring boot project, spring boot intellij idea, spring boot intellij community, spring boot intellij download, spring boot tutorial for beginners, intellij idea spring boot tutorial, how to configure intellij idea for spring boot, intellij idea spring boot setup, intellij idea spring boot run configuration, spring boot, intellij idea, How to Create a Spring Boot Project with IntelliJ IDEA, How to Setup and Run Spring using Intellij
Id: dXYKX8v84k0
Channel Id: undefined
Length: 8min 14sec (494 seconds)
Published: Sat Dec 02 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.