Creating new Maven Project | Adding Spring JDBC Dependencies | Spring JDBC Tutorial
Summary
TLDRIn this video, the host guides viewers through creating a new Spring JDBC project using Spring Initializr. They discuss configuring dependencies, setting up the project workspace, and integrating Spring's core and JDBC dependencies. The tutorial aims to simplify the process for beginners, ensuring a smooth start to their Spring project.
Takeaways
- 😀 The video is a tutorial for creating a new project using Spring JDBC.
- 👨🏫 The presenter guides viewers on setting up the project with Spring JDBC dependencies throughout the video.
- 📂 It starts with creating a project in IntelliJ IDEA, using the Maven project setup to simplify the process.
- 🔍 The video emphasizes the importance of selecting the correct Spring and Spring JDBC versions to avoid conflicts.
- 🛠️ The presenter demonstrates how to add dependencies for Spring Core, Spring JDBC, and other related libraries.
- 🔄 It mentions the use of Maven to manage and integrate the default dependencies that come with the project.
- 📝 The script includes instructions for configuring the artifact ID, group ID, and other project details in Maven.
- 🔑 The video provides tips on how to search for and select the correct dependencies using the Maven search feature.
- 📚 It explains the process of minimizing the project by removing unnecessary dependencies and keeping only the required ones.
- 🔄 The presenter also covers updating the project's dependencies to ensure compatibility and optimal performance.
- 🎓 The video concludes with a mention of a playlist that contains step-by-step instructions on Spring Core for further learning.
Q & A
What is the main topic of the video?
-The main topic of the video is about creating a new project using Spring JDBC and configuring all of its dependencies.
What does the speaker suggest to start with for creating a new project?
-The speaker suggests starting with a simple project using Spring IDE, which is easy and commonly used by many people.
How does the speaker recommend setting up the project workspace?
-The speaker recommends setting up the project workspace by changing the directory to a preferred location and then creating the project within Spring.
What is the importance of selecting the right version of dependencies in the video?
-Selecting the right version of dependencies is crucial to ensure compatibility and proper functioning of the project, avoiding potential conflicts and issues.
What is the significance of the 'Spring' folder mentioned in the script?
-The 'Spring' folder is significant as it is where the speaker organizes and stores all the related folders and files for the Spring project.
What does the speaker mean by 'Spring Core' dependencies?
-By 'Spring Core' dependencies, the speaker refers to the fundamental libraries and modules required for the Spring framework to function, such as Spring Context and Spring Beans.
How does the speaker approach adding external dependencies to the project?
-The speaker approaches adding external dependencies by first identifying the necessary dependencies, such as Spring Core and Spring JDBC, and then pasting them into the project's dependency section.
What is the role of 'Spring Datasource' in the project as per the video?
-The 'Spring Datasource' serves as the connection point for the project to interact with the database, providing the necessary configurations for database connectivity.
What is the purpose of the 'JdbcTemplate' mentioned in the script?
-The 'JdbcTemplate' is used for executing SQL queries and operations within the Spring project, simplifying database operations and interactions.
How does the speaker suggest configuring the project's artifact ID and group ID?
-The speaker suggests configuring the artifact ID with a unique identifier that represents the project and using a group ID that follows a specific naming convention, such as 'com.spring'.
What is the final step the speaker mentions for completing the project setup?
-The final step mentioned by the speaker is to review and update the project's configuration files to ensure that all operations can be performed as intended.
Outlines
😀 Introduction to Spring JDBC Project
The video script begins with a welcome back to the YouTube channel, focusing on a new project involving Spring JDBC. The speaker discusses the theoretical concept from the previous video and moves on to explain how to start a new project in Spring JDBC. They guide the viewers through the process of creating a project using Spring JDBC, configuring dependencies, and setting up the project workspace. The speaker also mentions using Open Hire Tips ID for simplicity and encourages viewers to search for 'Van' if they face any issues. The description includes steps for creating a project, selecting the appropriate dependencies, and configuring the project settings, such as the artifact ID and group ID.
😀 Configuring Dependencies for Spring JDBC
This paragraph delves into the practical implementation of Spring JDBC, emphasizing the importance of understanding and configuring dependencies. The speaker guides the viewers on how to open the project and configure the necessary dependencies, specifically focusing on the versions of Spring and Spring JDBC. They mention the need to match the versions used in the project with those available in the Maven repository. The speaker also discusses the process of copying and pasting dependencies, ensuring that the project is set up correctly. Additionally, they touch on the use of Google for searching dependencies and the importance of matching the versions for better integration and performance. The paragraph concludes with a teaser for the next steps in the project, hinting at configuring the project's configuration files.
Mindmap
Keywords
💡Spring Framework
💡Spring JDBC
💡Dependencies
💡Project Creation
💡Configuration
💡Database Connectivity
💡Artifact ID
💡Group ID
💡Spring Core
💡Template
💡Data Source
Highlights
Welcome back to the YouTube channel, discussing a new project in Spring JDBC.
The video will guide through configuring all dependencies of Spring JDBC.
Instructions on how to start a new project if you haven't done so yet.
Using Open Hear Tips ID Simple IDE for creating projects.
Creating a new project by selecting 'File' and then 'New'.
Searching for 'Spring' if 'Maven' is not visible.
Choosing 'Spring' and selecting the project type.
Using 'Simple' to avoid extra effort in adding dependencies.
Guidance on changing the workspace and project location.
Creating folders and selecting the Spring project type.
Attention to the 'Artifact ID' and 'Group ID' during project setup.
Selecting the appropriate Spring version and dependencies.
Importing dependencies and configuring the project with Maven.
Instructions on how to add external dependencies.
Explaining the importance of matching Spring and Spring JDBC versions.
Demonstrating how to copy and paste dependencies in the 'pom.xml' file.
Updating the project with the latest dependencies.
Discussing the practical implementation of Spring JDBC.
Providing tips on using Google for searching dependencies.
Highlighting the importance of configuring the project correctly.
Encouraging viewers to subscribe, like, and share the video.
Transcripts
हेलो हेलो प्रोग्रामर्स वेलकम बैक टू माय
YouTube चैनल फ्रेंड्स हम लोग सिगरेट थे
स्प्रिंग जेडीबीसी और हम लोगों ने पूरा
थियोरेटिकल कॉन्सेप्ट समझ लिया था अपने
पिछले वीडियो में इस विडियो में हम लोग एक
नया प्रोजेक्ट बनाएंगे स्प्रिंग जेडीबीसी
का और स्प्रिंग्स जेडीबीसी की सारी
डिपेंडेंसीज को कॉन्फ़िगर करेंगे इस पूरे
विडियो में तो आपको कोई भी टेंशन नहीं
लेना है कैसे स्टार्ट करना है अभी तक आपने
नहीं किया है तो मैं फिर से एक बार बताने
जा रहा हूं कैसे आपमें वन प्रोजेक्ट
क्रिएट करोगे इंडिपेंडेंस इसको ऐड करोगे
और साथ-साथ में हम लोग स्प्रिंग्स
जेडीबीसी की डिपेंडेंसी और ऐड करेंगे इस
वीडियो में तो चलिए फ्रेंड्स हमारे पास
यहां पर ओपन हेयर टिप्स ID सिंपल सी आई डी
यह बहुत ही आसान है बहुत ही ज्यादा लोग
उसको यूज करते हैं तो हम लोग इसी इस
जाएंगे इसलिए साइड को इस करेंगे सिंपल जवा
पिछली साइड यहां पर ओपन कर लोगे तो सिंपली
आपको यहां पर एक ऑप्शन दिखेगा फाइल का
सिंपली फाइल पर क्लिक करोगे न्यू पर जाओगे
और सिंपल यहां पर एक मे वन प्रोजेक्ट
मिलेगा अगर आपको मे व नहीं मिलता तो
सिंपली पाओ के आधार पर और आधार पर आने के
बाद सिंपली आपको यहां पर सर्च करोगे मैं
वन ठीक है सिंपल मैं वन और आप
ए प्रोजेक्ट पर क्लिक करना है ठीक है मैं
वन प्रोजेक्ट वास मेंट यूज कर रहा हूं कि
हमें डिपेंडेंसीज लगाने में ज्यादा मेहनत
न करनी पड़े मे बंद सारे के सारे
डिफेंडर्स खुद से मैस कर लेगा तो आप भी
इसको यूज करें अदरवाइज सिंपल प्रोजेक्ट
बनाकर खुद से जार फाइल को ऐड कर सकते हो
कोई भी शुरू नहीं है सिंपली हम क्या करते
हैं नेक्स्ट पर क्लिक कर देते हैं ही कुछ
पूछेगा तो हम बता देंगे यह पूछ रहे हो या
मुझे प्रोजेक्ट कहां पर बनाना है तो
सिंपली यहां पर इस वर्कस्पेस चेंज करूंगा
डोंट शोल्डर चेंज करूंगा वैसे आप ले
जाऊंगा ब्राउज़र करूंगा ब्राउज़ करने पर
मैं यूट्यूब में है ब्रेड के अंदर नहीं
करूंगा जबकि स्प्रिंग अंदर बनाऊंगा सॉलिड
मैंने यहां पर फोल्डर बना के रखे हैं तो
सिंपली आऊंगा और स्प्रिंग सेलेक्ट कर
लूंगा तो बहुत सारे फोल्डर से यूट्यूब से
रिलेटेड ही तो सिंपल भैया कहां मिलेगा
मुझे कहां मिलेगा काम लगेगा टाइम सिंपल
स्प्रिंग मैंने सेट कर लिया सेलेक्ट
फोल्डर अब जो हमारा प्रोजेक्ट होगा वह
इसमें बनेगा स्प्रिंग अंदर परफेक्ट है
सिंपल हम नेक्स्ट कर देंगे अब हम यहां पर
सबसे ज्यादा ध्यान रखना यहां पर सिंपली
हमें बैटल आफ इंटरनल यूज करना है ठीक है
और आपको यहां पर आर्टीफैक्ट आईडी में मे व
नायक टाइप कोई कि स्टॉक सेलेक्ट करना है
क्योंकि को कंप्लीट होने वाला आपको बैक
नहीं सेलेक्ट करना है कोई स्टॉक सेलेक्ट
करना है अभी तो फिलहाल ठीक है कोई स्टार्ट
1.1 में सेट कर लूंगा और सिंपलेक्स कर
दूंगा यह आपसे कुछ इंफोर्मेशन पूछेगा तो
बता दीजिएगा सबसे पहले ग्रुप ID तो ग्रुप
आइडिया सेल्यूलर टू योर पैकेजेस तो हम
यहां पर कॉम डॉट स्प्रिंग डॉट एसिड कर
देंगे ठीक है आप कुछ भी कह सकते हो कोई
दिक्कत नहीं है इसके लिए आपको प्रोजेक्ट
को यूनीकली आईडेंटिफाई करने के लिए ठीक है
तो सिंपली आर्टीफैक्ट आईटी मिंस प्रोजेक्ट
का नाम एक तरीका है तो मैं यहां पर
स्प्रिंग जेडीबीसी देंगे पिछली बार हम
लोगों ने स्प्रिंग को यूज किया है स्वाद
स्पंज विशेष देंगे सबका पैकेज का नाम बन
गया कॉम डॉट स्प्रिंग डॉट्स प्रिंटेड तो
सिंपली में लास्ट वाली हटा दूंगा कोई
दिक्कत नहीं है सिंपली मैं यूज करूंगा इस
कॉर्ड स्प्रिंग डॉट चीन सिटी के कोड
विषयों सिंपल हम फिनिश करेंगे एडवांस को
देखना है तो आप देख सकते हो क्रॉस कोई
दिक्कत है इसको आप ऐसे टिप्स रहने दो और
सिंपलेक्स कर दो नेट
को ऑन कर दीजिएगा यह खुद से क्या करेगा यह
खुद से प्रोजेक्ट को क्रिएट कर देगा और
क्रिएट करने के बाद सारी डिपेंडेंसीज जो
भी बाई डिफ़ॉल्ट मिलेंगी वह सब कुछ
इंटीग्रेट कर देगा आपको कोई दिक्कत नहीं
है जब एक बार ही प्रेसिडेंट हो जाएगा फिर
हम लोग अपनी एक्सटर्नल डिपेंडेंसीज क्या
करेंगे लगाएंगे तो यहां पर देखेंगे तो
हमारा डलहौजी आ चुका है और आप देखोगे तो
इस स्पंज लीडरशिप सिर्फ प्रोजेक्ट बनाकर
भेजा गया और इस पिन कोड पहले वाला
प्रोजेक्ट इसका वह बहुत सारा काम किया था
आप देखोगे इतने सारे कांटेक्ट कोर के ठीक
है ठीक है इन सारे कांटेक्ट को ग्राफ को
रिवाइज करना है अभी तक आपने देखा तो आप
जाकर हमारी प्लेलिस्ट देखिएगा वहां पर एक
वीडियो मैंने स्टेप बाय स्टेप स्प्रिंग
कोर की सारी डाली हुई है आप उनको दिखेगा
बहुत अच्छे से पूरे कौन से यह समझ जाओगे
और उसके लिंग जो है उस डिस्क्रिप्शन बॉक्स
में डाल दूंगा सिंपल सी बात है भाई अब
जाकर देख लो कोई दिक्कत नहीं स्टेप बाय
स्टेप चीज समझ जाओगे अगर आपको स्प्रिंग
फ्रेमवर्क ठीक है नेक्स्ट बात करते हैं आप
स्पंज एक्टिविटी की तो सिंपल अभी हम लोग
ने प्रोजेक्ट कि यहां पर करेंगे सबसे पहले
आपको ओपन कर लेना है फ्रॉम रोड टैक्स इन
थिस फाइल को ओपन करने के बाद सिंपल
मैं आपको कुछ यहां पर डिपेंड सील लगानी है
तो पहले से कुछ इंडिपेंडेंस लूंगा तो पहले
वाले स्प्रिंग और कि मॉम डैड में ओपन
करेंगे ठीक नॉट वांट थिस स्प्रिंग कोर की
फॉर मेडिसिनल ओपन करेंगे तो यह जो यह
स्प्रिंग कोर की फॉर टूरिज्म लें और मुझे
बेसिकली दो डिपेंडेंसी चाहिए मुझे शॉपिंग
और विटामिन सी और ए के मुझे स्प्रिंग
कांटेस्ट की तो यह दोनों दिल्ली में कॉपी
कर लूंगा आपको ब्रेड दवा एक्शन चाहिए तो
इसको पॉज कर सकते हो ठीक है अदरवाइज मैं
सिर्फ और और कांटेक्ट यहां से लूंगा और इन
जेडीबीसी वाले स्पर्म लोग जल में
डिपेंडेंसीज के अंदर सिंपली पेस्ट कर
दूंगा सिम प्रेस कर दूंगा और SIM प्लेट
यहां पर फॉर्मेट करके इसको पहले वाला जो
प्रोडक्ट्स को मिनीमाइज़ कर दूंगा कोई
दिक्कत इस पर आएंगे राइट क्लिक करेंगे अभी
कंपनी सहवास आप देखेंगे स्प्रिंग डे किसी
करेंगे राइट क्लिक करेंगे और यहां पर आपको
दिखेगा एक मेलबर्न का फोल्डर शो वेट करते
हैं थोड़ा सा सिस्टम थ्रू है ठीक है यहां
पर चलते हुए यहां पर ऑप्शन में बंद यहां
पर ऑप्शन अपडेट पिंपले आप इसको अब
दोगे और ओके कर दो जब तक अपडेट हो रहा तब
तक हम यहां पर आते हैं क्योंकि हम लोग को
स्प्रिंग जेडीबीसी पर सारा काम करना है के
साथ काम करना कौन से सीखने है प्रैक्टिकल
इंप्लीमेंटेशंस करनी है सब क्लियर Google
करेंगे और यहां टाइप करेंगे स्प्रिंग
जेडीबीसी मैं वन टेस्ट टीम जेडीबीसी मे इन
थिस सिंबल मे इंडिपेंडेंस वाला ओपन हो
जाएगा वेबसाइट आप सिंपली यहां पर क्लिक
करके इसको ओपन कर लेंगे अब यहां पर सबसे
इंपोर्टेंट चीज है जीडीए वीसी की पूरी
डिपेंडेंसी है स्प्रिंग और स्प्रिंग्स
जेडीबीसी की देखोगे यहां पर लेकिन हमें
वही वर्शन चाहिए जो आपने यहां पर यूज किया
है हम लोग मिस किया था 5.2 2.3 लें तो आप
यहां पर 5.2 पॉइंट थ्री यूज करोगे यह
इंवाइट पॉइंट 2.3 यह वाली डिपेंडेंसी आप
यह चीज ध्यान रखिएगा ठीक है सिंपली इस
डिपेंड उसी को कॉपी करोगे और कॉपी करने के
बाद आप यहां पर यह पहली वाली कोर थी यह
कांटेक्ट कांटेक्ट के नीचे सिंपलेस्ट कर
दोगे एक बार फिर से आप इसको मैच कर लोगे
कांटेक्ट वर्कर वर्जन फाइव पॉइंट टू पॉइंट
₹3 है 5.2 पॉइंट रिलीज है तो यह मैच करेगा
तो ज्यादा बेटर रहेगा
ज्यादा अच्छे से काम हो पाएगा तो Raees
गड़बड़ी हो सकती है अच्छा हम जो डावेस यूज
करें और मैं इसको इट आप इसको यूज करके
माइक्रो आब्जर्वर 5.7 तो मैं क्या करुंगा
मैसेज प्ले यहां 22 करैक्टर में लगा हुआ
तो सिंपली यहां पर माई फेस्टिवल करेक्टर
सबका यहां से भी सर्च कर सकते हैं Google
से भी सर्च कर सकते हैं आप एवरी ठीक है तो
आप देखोगे यहां पर मैं इस करेक्टर है पहला
अलार्म सिंपली इसको ओपन कर लेंगे और यहां
पर मैं यह वाला यूज कर सकते हैं बट आप अगर
माय स्कूल सर्व 8.0 इस करोगे या एक पॉइंट
वगैरह के तो आप एडिट करेगा सिंपली मैं
यहां पर फाइव का कोई वर्जन उठ कर लूंगा
कोई दिक्कत नहीं मैं यूज करूंगा या फाइव
पॉइंट्स समथिंग दो 5.1 यूज कर सकते कोई
दिक्कत नहीं आपकी जो मर्जी हो वह कर लो
कोई दिक्कत नहीं या सिंपल इधर से भी कोई
यूज कर सकते हैं ठीक है बट five-point
समथिंग यूज करेंगे ठीक है 5.3 यूज करें का
यह सिंपली हम इसको पी कर लेंगे और कॉपी
करने के बाद हम लोग आएंगे यहां पर सिंपली
अपने जेडीबीसी के नीचे सिंबलिक पेस्ट कर
देंगे सोए हो तो आप सबको समझ में आ गया
होगा कैसे करना है सिंपली इसमें कोई
दिक्कत होगी तो आपको चेंज कर सकते कोई
अपने बट यहां पर वर्जन पर बहुत ज्यादा
डिपेंड करता है अगर आप - क्वाइट यूज करोगे
तो मैं स्कूलों की जो करेक्टर है वह 8.0
इधर से कोई डाउनलोड इधर से आप कोई लगाइएगा
ठीक है तो यह चीज इंपोर्टेंट है तो हमारे
पास सारी डिपेंडेंसीज है अब हमारा यह
प्रोजेक्ट रेडी है अब हम लोग स्प्रिंग
जेडीबीसी का काम कर सकते हैं पंजाबी विषय
का काम कर सकते हैं अदरवाइज दिक्कत हो
सकती थी ठीक है तुझे मिली हम लोगों ने
कौन-कौन से डिपेंडेंसी लगा यहां पर कोर की
लगाइए कांटेस्ट की लगाइए साथ ही साथ यहां
पर जीडी भी ठीक लगाइए स्प्रिंग एडीसीपी
अमरीक वेस्टइंडीज के साथ काम करना है और
यहां पर हम लोगों ने माइकल फ्रेटर लगा है
अगर हमको यहां पर आते हैं माय मे
इंडिपेंडेंस इसमें तो आप देखोगे यहां पर
एक स्प्रिंग कोर कांटेक्ट बींस जेडीबीसी
भी आ गई और मैं स्कूल करेक्टर भी आ गया
परफेक्ट है आधुनिक सर्च कर सकते हैं जिससे
टेंप्लेट वर्ल्ड क्लास तो हम लोग
कंट्रोल्स पे लेंगे और यहां पर हम लोग
सर्च कर सकते हैं जेडीबीसीटेंप्लेट देखोगे
क्लास है इसको सिंपली ओपन करते हैं तो
आपको मैं एक बार प्लस दिखा देता हूं जो
मैं पिछले विडियो में लिखे यह देखिए जो
टेंपर्ड ग्लास है जो एक
तरह ट्विस्ट सीरियल स एंड ऐसी ऑपरेशंस कॉम
इसके अंदर आपको देखे डाटा सोर्स है देना
होगा यह देखिए आपको डाटा मिसयूज मौजूद
देना है सदस्य बेसिकली इंटरफेस आप पर
कंट्रोल क्लिक करके जाकर देख सकते हो यह
इंटरफेस डाटा सोर्स जो कि दो एक्सेंट कार
इंटरफेस कॉमन डाटा सोर्स एंड र फिजिकल यह
चीज हमें यहां से इंजेक्ट करनी है जब भी
MS Word इसे टेंपलेट का जुनून है तो
बेसिकली हमें डाटा सोर्स यहां पर डालना ही
डालना है तब यह बजट बना सकते हैं अदरवाइस
हम को दिक्कत होगी ठीक है सॉरी आपको सामने
आ गया नेक्स्ट डे हम लोग क्या करते हैं
कॉन्फ़िगर करते हैं अपनी कॉन्फ़िगरेशन
फाइल्स कैसे जेडीबीसी है ज्यूडिशियल से
लोगों से क्वेश्चन करेंगे तो हाय आई हॉप
आपको वीडियो समझ में तो हम लोग नेक्स्ट डे
में रिपेयर करेंगे अपनी कंफीग्रेशन फाइल
जिसे कि हम लोग ऑपरेशंस को परफॉर्म कर
सकते हैं तो इस वीडियो में तक पर अगर अभी
तक चैनल सबस्क्राइब नहीं किया जा सकता इस
रेमिडी को लाइक और शेयर नहीं किया तो
प्लीज लाइक और शेयर जरूर करें भाई मैं
मिलता हूं आपसे नेक्स्ट वीडियो में तब तक
के लिए जय हिंद जय भारत बाबा
関連動画をさらに表示
Connect a PostgreSQL database to a Spring Boot Application Tutorial
#6 Dependency Injection using Spring Boot
#8 Spring without Boot
#9 Spring XML Config
What is Maven in Java in Hindi | How Maven Works with Java & Spring Boot: Step-by-Step Explanation
Ways of Injecting dependencies | Types of dependencies handled by IOC Container | Spring Tutorial
5.0 / 5 (0 votes)