Java Spring Boot - How to Create Maven Multi Module Project

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 ก.พ. 2025
  • Learn how to create multi-module Maven project together with Spring Boot. Check out how to manage version of your modules and avoid common pitfalls. Later on we are using simple library project as the dependency in our exectuable jar file. Project from scratch using Spring Boot Initializr!
    Follow //CodefForgeYT on:
    FB: / codeforgeyt
    Twitter: / codeforgeyt
    GitHub: github.com/cod...
    Instagram: / codeforgeyt
    You can find code here: github.com/cod...

ความคิดเห็น • 36

  • @PallavShyam
    @PallavShyam 4 หลายเดือนก่อน

    22 minutes crisp video and creating multi-module spring-boot project using IntelliJ becomes a child play. Excellent. Thank you.

  • @mackkek7603
    @mackkek7603 4 ปีที่แล้ว +11

    I just wanna say that you did this tutorial excellent, well explained and straight to the point. Too bad that it't not that many tutorials out there like this one. If I only would have found this 14 hours ago I would have saved a lot of time. Thanks for posting this!

    • @CodeForgeYT
      @CodeForgeYT  4 ปีที่แล้ว

      Hey! Thanks for the very positivie feedback. It is really nice to hear things like this!

  • @Diego-db4uw
    @Diego-db4uw 22 วันที่ผ่านมา

    Best tutorial, just what i need... with bonus improvements... rs

  • @moondrya
    @moondrya ปีที่แล้ว

    Saved a lot of time to create multi-module spring boot project using IntelliJ. Thank you Sir! 🫶

  • @satyarajGovindaDas
    @satyarajGovindaDas 11 หลายเดือนก่อน

    Thank you very much. This is a great step-step video, you have explained clearly and all you have showed in this video is exactly what I was searching for.

  • @kishorprakash9837
    @kishorprakash9837 4 ปีที่แล้ว +1

    Really great video.
    You fucking nailed it in 22 mins.
    Please always keep your videos simple and quick like this one.
    I love it.

  • @boikimphore4707
    @boikimphore4707 ปีที่แล้ว

    Great explanation with detailed examples, multi-module projects have always been tricky to me, especially with managing dependencies, until now. 😎

  • @tugnguyen
    @tugnguyen 4 ปีที่แล้ว +2

    Thank you mate, you actually go straight to the point and explain it well

    • @CodeForgeYT
      @CodeForgeYT  4 ปีที่แล้ว +1

      Thanks! Happy you like it!

  • @ahmadfaiaz3427
    @ahmadfaiaz3427 ปีที่แล้ว

    It was really awesome, very simple example, really well explained. just loved it. Thanks so much. And to answer your question, instead of restarting IntelliJ you can refresh maven after you run "mvn clean install" in root dir.

  • @minyon9621
    @minyon9621 11 หลายเดือนก่อน

    Thanks for the solution! Saved me a lot of time!

  • @sourabhshete2243
    @sourabhshete2243 2 ปีที่แล้ว +1

    The way you're just closing the built project folder in intellij and then opening it again in new window, so instead of that you can simply add it as maven project without closing the intellij project window. Just right click on the pom.xml and from the drop down menu click on the option - "Add as a maven project", simple.

    • @CodeForgeYT
      @CodeForgeYT  2 ปีที่แล้ว

      Yeah I have learned about it some time later. Thanks!

  • @Paper-Folded
    @Paper-Folded 2 ปีที่แล้ว +1

    Thanks for your instruction ! You are life saver ~

  • @EnggAdda-e3l
    @EnggAdda-e3l ปีที่แล้ว

    what if both the child applications have there own REST APIS , how will be managing both of them at one go and is there any way we can generate the jar of the parent app so that we can deploy them in some cloud?

  • @AbdoulKarimDiallo-c4k
    @AbdoulKarimDiallo-c4k ปีที่แล้ว

    Thank you!

  • @MohammadRezaFalahati-e9m
    @MohammadRezaFalahati-e9m ปีที่แล้ว

    that was very good

  • @ttc744
    @ttc744 4 ปีที่แล้ว +1

    thanks good video. Perhaps add info on build tag

    • @CodeForgeYT
      @CodeForgeYT  4 ปีที่แล้ว

      Happy you like it! :)

  • @razzagzade903
    @razzagzade903 3 ปีที่แล้ว +6

    If we had a chance to meet you live, I would kiss you on the forehead))))
    Just spectacular

  • @fe2507
    @fe2507 4 ปีที่แล้ว +1

    How to create it without a main class, and then use this multi-module in another spring boot project with a main class? Thanks
    CodeForgeYT!

    • @CodeForgeYT
      @CodeForgeYT  4 ปีที่แล้ว +1

      Well, you want to remove the main class, because you want a library like project. Then you want to rebuild it and it should be installed in your local maven repo. When its done you want to include sub-modules in your runnable project as the dependencies.

    • @fe2507
      @fe2507 4 ปีที่แล้ว +1

      @@CodeForgeYT Good, thanks!

    • @CodeForgeYT
      @CodeForgeYT  4 ปีที่แล้ว

      @@fe2507 No problem!

  • @lovemeplz04
    @lovemeplz04 4 ปีที่แล้ว +1

    Thanks master

    • @CodeForgeYT
      @CodeForgeYT  4 ปีที่แล้ว

      You are welcome ! : D

  • @xMol4unx
    @xMol4unx 3 ปีที่แล้ว

    Thanks for the video. Can someone explain me - wich application.properties file will be used?

    • @nathansnow
      @nathansnow 3 ปีที่แล้ว

      By default the application.properties file in the root project will always get priority. For example if you have a property "app.test" in your root properties file AND in a child module, the value from the root file will be returned.
      However you can have module specific settings and while there is no naming clash from the root file your module settings can be accessed as well

  • @anilrajput1984
    @anilrajput1984 9 หลายเดือนก่อน

    thanks

  • @friendsofmuhammad
    @friendsofmuhammad ปีที่แล้ว

    Make it full stack please

  • @dainier82
    @dainier82 4 ปีที่แล้ว +1

    Good video, code please !!

    • @CodeForgeYT
      @CodeForgeYT  4 ปีที่แล้ว +1

      Thanks for feedbac. I have uploaded code to github. You can find link in video description. Keep coding!