When it's a video from Java Techie, I always like and comment before I even watch it! Java Techie has never let me down! Thanks Java Techie!
@Javatechie3 жыл бұрын
Thanks buddy 😊
@satyarajGovindaDas11 ай бұрын
Great tutorial. I was struggling with the multi module spring project with dependencies and you nailed it down on exactly what I was looking for. God Bless you.
@dev_mayank8 ай бұрын
I have started to follow this channel from over a month and wish I knew about this before. Love the work 🔥
@piyushasutkar54234 жыл бұрын
Plain. Simple. Straight on point. Great 👍
@MrBittu693 жыл бұрын
that's the thing i was looking for last 2 hours. Great video
@daniellaerachannel5 жыл бұрын
a complete tutorial on Access Data with Postegres, Oracle, SQL, Jpa and angular would be appreciated, Thanks a lot
@anuragupadhyay13025 жыл бұрын
Sir thank you for details explanation, please include the section , "building/compiling any particular module which is dependent on other modules without building other ones. "
@Javatechie5 жыл бұрын
Will cover this with microservice example
@banditapradhan90322 жыл бұрын
Thank you Basant for nice video. I have same use case and would like to know how to manage modules that are dependent on modified modules? Waiting for your post.
@Rajnish0894 жыл бұрын
Bhai tumhara jabab nhi.. awesome explanation..
@dom64773 жыл бұрын
Cool. Thanks for sharing. I was trying to generate a Docker image for a multi-module maven project and I had no clue why it was falling.
@Javatechie3 жыл бұрын
What is the error you are getting
@vanitanatkarmogal55883 жыл бұрын
Thanks for the video it really help me to understand multimodule project.
@Farm2Code10 ай бұрын
you do this thing very easily i always stuck with configurations while im trying what you did
@vinhnguyentran7493Ай бұрын
Your tutorial helps a lot. You saved my day! Thank you very much sir!
@sacredheartresthouseinn82512 жыл бұрын
Amazing video sir!! But a suggestion would be like if this hospital management can be rebuild with lot more features of spring boot along with rest call for some API's and feign call for some with the idea to cover most of spring boot concept would have been great even if it is a lengthy video of say 5+ hours. Because ur fans will still love to watch till end and not wait for any video to be end soon. Always this approach in any new videos would be helpful if it is covering many of the latest concepts and in depth, so that we don't need to search for so many videos to get certain concepts. So thumbs up and hope to see it implemented ASAP at your convenience.
@Javatechie2 жыл бұрын
I completely agree with you not hospital management but I will plan some other project
@sacredheartresthouseinn82512 жыл бұрын
@@Javatechie ty so much sir
@sacredheartresthouseinn82512 жыл бұрын
@@Javatechie also it would be hard for you to showcase the entire lengthy 5+hour project in one go. So as a suggestion i would say take short videos, and u can later combine it as a single lengthy video- of any time(5 hr or 10 hr or ur choice like Edureka sometimes do). But in description box u can mention the topic of each short videos with its corresponding link if at all viewers don't have time to see the entire length 5+ hour video and want to just go to a particular topic or revisit(like i do) certain topics again after watching the full length video, which otherwise would be hard to scroll the entire video to find that particular topic from the video.
@MDAnashAnsari3 жыл бұрын
You explained it very well. Thanks for your effort...
@murari-goswami5 жыл бұрын
Waoo, Right in time. This is what I was looking for last few days. Great job done. Keep it up.
@AmitSharma-fw2ng4 жыл бұрын
Very Nicely Explained. Thanks....
@voiceguy5543 жыл бұрын
Many thanks for the great tutorials!!! God Bless!!!
@anandlshinde3 жыл бұрын
Thanks , very helpful video.
@tanujkumaragrawal47565 жыл бұрын
Very nice explanation sir , it makes easy to understand Thank you sir
@santoshkamat61324 жыл бұрын
Great sir. Could u kindly make video of multi module spring boot project using gradle? Need to understand for client project in company Looking forward to it as you always take on challenges head on👍
@rahulsheth88373 жыл бұрын
Great work.. Your explanation is too good.. can you add few more videos on multi module project
@Javatechie3 жыл бұрын
Sure will do that
@arturoaguilarsanchez20203 жыл бұрын
Great tutorial! Thanks to Java Techie!
@mrvxkumar5 жыл бұрын
Your videos are amazing. When two micro-services interact then sometimes they have same domain objects for communication., so there is a duplicacy of code. How can we avoid same domain object in 2 microservicces?? Thanks in advance.
@Javatechie5 жыл бұрын
We can create it using multi module project but am not sure definitely I will do R&D on it ND let u know soon
@srikanthdintakurthi79113 жыл бұрын
thank you very much. This video really helped a lot.
@himanshutariyal76482 жыл бұрын
Great tutorial, Only one request, since only the ultimate edition of intellij provides with option to create spring boot project, can you show another way to create a multi module application by spring initiliazer or any other free source.
@Javatechie2 жыл бұрын
Okay i will do that
@madhurajsingh65583 жыл бұрын
This is what I was looking for.... perfectly explain....could you please make a video on MultiTenant feature for using various DBs plz 🙏
@Javatechie3 жыл бұрын
Hi Madhuraj I will try
@LiMITZERO4 жыл бұрын
Very straightforward tutorial... new subs here
@bestdate95415 жыл бұрын
Nice Video, It would have been better you could have done it in a Microservices way, This is still done in Monolithic app.
@Javatechie5 жыл бұрын
I will create one microservice video with multi module project . This tutorial will give awareness "how to build multi module project using Maven" It's no way related with designing neither monolithic nor microservice. Keep in touch will update soon
@bestdate95415 жыл бұрын
@@Javatechie are you located in India?, do you have plans for migrating to the UK?
@bestdate95415 жыл бұрын
@@Javatechie Thanks for tracking your channel and responses, continue this please, really appreciated.
@ajaydarshanala80514 жыл бұрын
@@Javatechie Did you get time to make a demo of multi module maven project for microservices ? Would this concept really helpful in microservices codebase ?
@Javatechie4 жыл бұрын
Yes it will helpful and industry following it . I will try this in next weekend please give me a reminder email on javatechie4u@gmail.com
@GurdeepSingh-ur9rl4 жыл бұрын
Thanks for sharing, sometimes smaller tricks are difficult to find
@paridhikhare45184 жыл бұрын
Nicely explained , probably require a hands-on and few more projects to be practiced to have a good grip
@Javatechie4 жыл бұрын
Thanks I will try to improve
@paridhikhare45184 жыл бұрын
I mean hands on is required for viewers.can you please more spring boot projects on your channel . I want to learn actuator
@Javatechie4 жыл бұрын
Could you please checkout spring boot playlist once
@paridhikhare45184 жыл бұрын
Thanks I will watch
@saumyaranjan851425 күн бұрын
Good one
@grrlgd3835 Жыл бұрын
Hi JT ....I'm confused between Inheritance and Aggregation for multi-module projects. Would be great for a short video one day ! I know you are busy. tks
@Javatechie Жыл бұрын
Okay I will do that
@grrlgd3835 Жыл бұрын
@Javatechie excellent thanks. I'm currently working through your Microservices course and I've tried to implement multi-module. Seems OK but look forward to video. Your course is excellent as expected. Cheers
@degiherlambang28262 жыл бұрын
awesome explanation
@prabhatkumarsahu31155 жыл бұрын
awesome content bro.... one suggestion bro i feel in place of Darcula black theme if u used intellij default white background theme it will be more visible
@Javatechie5 жыл бұрын
Ok will use white theme but let's continue couple of video with Dracula let people aware about basic shortcuts
@marjavamitjava52432 жыл бұрын
Hi Basant- Thanks for your tutorials. Isn't Multi-module Project is like Monolithic app?
@Javatechie2 жыл бұрын
Yes , please checkout my saga design pattern implementation that is about microservices
@dipendra-sharma5 жыл бұрын
Appreciating the effort. It will create problems while deploying Service independently. You are messing microservice design with multi-module design. Service needs to be independently deployable. Isn't it?
@aneksingh44962 жыл бұрын
Really good content
@SohailKhan-gu2du3 жыл бұрын
Hey man.... U r very knowledgeable.. Can u create some. Complex apps... Using spring boot.. Kafka.. Multi threading n all.... Like handling huge traffics of request... Apart from this simple crud apps
@yogischannel99724 жыл бұрын
very nice video sir
@srikanthdintakurthi79113 жыл бұрын
Please make a video on module vs microservices.
@furkankamaci6180 Жыл бұрын
wow... great video..
@tapaneshdash18564 жыл бұрын
Awesome bro.... Really nice stuff...Thanks again for sharing such a nice video.... keep up the good work
@24381498 Жыл бұрын
You missed showing the build part? How the build happen? what will be the final artifact which we will be deploying. As parent pom is of packaging pom, will we get individual jars for each module?
@Javatechie Жыл бұрын
Yeah buddy i missed it . Will cover it as a separate video
@germanovalle80210 ай бұрын
I think is better if your parent pom should be the hospital management system itsel, and with dependency managemente tag you can manage the spring boog depéndencies needed
@goku62723 жыл бұрын
Please also covers goals and plugin
@ramsesmartinez22303 жыл бұрын
You are the good, thanks!
@dnyaneshwarkamble99534 жыл бұрын
Hi Techie, You are doing great work, i like your vdo's , can u plz help me in one spring boot application is used as dependency fro other spring boot application in micro services
@Javatechie4 жыл бұрын
Are you using multi module project ?
@dnyaneshwarkamble99534 жыл бұрын
@@Javatechie No
@dnyaneshwarkamble99534 жыл бұрын
i want to add commonly user classed in one spring boot application and use it as dependency in other spring boot micro services.
@srikanthdintakurthi79113 жыл бұрын
So this tag in module's pom.xml is the alternate way for modular java file package exporting?
@yashgupta-dw7sn3 жыл бұрын
best explianation
@Pawan17735 жыл бұрын
Nice tutorial. Can you please upload a video on how can I create multi-module Springboot application using Eclipse. As of now I was using Spring Initializr to create project zip and import it to eclipse. I can’t find any way of creating packaging type POM from UI.
@Javatechie5 жыл бұрын
Yes we have option , add STS plugin in your eclipse and try this out
@DanceOfTheDragon6 ай бұрын
Nice explanation, how to create the jar / war/ ear for this submodule project mvn build command is failing for sub module
@Javatechie6 ай бұрын
Seems this is old video I will update a new video with multi module project
@DanceOfTheDragon6 ай бұрын
@@Javatechie eagerly waiting, thanks
@chitthiaayeehai3 жыл бұрын
But how the Jenkins pipeline wl be created? Wl it be for the parent or sub modules? How can we deploy jar separately ? Wl I be in some classes folder or this wl be runnable jar or something ? Not very clear on Production deployment part pls spend some time to explain that 🙏
@Javatechie3 жыл бұрын
Debasish each module have their separate jar . So pipeline need to build for each module .
@BajjuTheExplorer7 ай бұрын
Thanks for the video. What is the purpose of tag in pom.xml ?
@kayeshparvez4 жыл бұрын
Thanks. Could you show how to add existing modules to a project from scratch ?
@Javatechie4 жыл бұрын
Okay I will do this
@mrvigneshmca3 жыл бұрын
This is an excellent video. Thanks for it. I have couple of questions here. I created two maven projects and made changes in parent pom.xml to make other project as child. But my parent maven application.properties is not getting detected and hence those changes are not getting loaded. Any reason what is the mistake i am doing.
@Javatechie3 жыл бұрын
In multi module project properties file won't be inherit
@AshtonWolfwood2 жыл бұрын
I think the biggest problem with modules are the circular dependencies. For example, in this the email module is used by service module. But now email cannot use service.. I dont know if theres any way around this limitation?
@Javatechie2 жыл бұрын
That is why we segregated modules based on features right
@ItsRani-i1y Жыл бұрын
Thank you so much
@harrshiil3 жыл бұрын
Was that microservices in traditional approach? if yes and you converted to multi module so does it still consider as microservices? Or I am mixing multi module and microservices here?
@Javatechie3 жыл бұрын
Yes multi module and micro service both are different context . Multi module just to segregate layers where micro service is way of designing application independently .
@RajabAli-zg7rv5 жыл бұрын
Nice content explanation , easy to follow up and understand while implementing at the the same time.
@salmanriaz78924 жыл бұрын
hi, great video! answer many questions i had. Can you explain if we bundle web & service separately from repository and domain? I am thinking of Microservices approach which we build separately and reuse repository and domains in multiple projects.
@Javatechie4 жыл бұрын
Yes usually we should follow the same .as this is demo on multi module project so I show like this
@salmanriaz78924 жыл бұрын
@@Javatechie so in that case we can have a very lightweight api & service bundled in one parent project and create a separate parent project that will contain domain model definitions and finally a third parent project for repository (system access layer)?
@agguLi4 жыл бұрын
First of all, thanks for the video. I was looking for a approach to share my dtos between my services. The way you created the project I find a bit confusining. You use a multi module project to increase decoupling but you wirite all your methods in module e.g. the service module. Wouldn't it be better to put a whole Service with all it's layers per module and create a separate module only with shared dtos?
@Javatechie4 жыл бұрын
Yes you are absolutely correct we should do that but this is just a demo
@smaug98333 жыл бұрын
great video. could you show this modular approach for auth and managing url routes, just to make auth module and all url mappings completely decoupled.
@KishanKumar-rs8sx3 жыл бұрын
Nicely explained.. How to write Junits and integrate sonar. Jacoco plug-in in multi module project sir?
@kirantulasi44752 жыл бұрын
Do each module is a single jar?? If we have two modules then it should be deployed as two jars seperately?
@Javatechie2 жыл бұрын
Yes
@kirantulasi44752 жыл бұрын
@@Javatechie Thank you
@udaysurse54385 жыл бұрын
Hi..What is difference between Microservice and Multi module project.? Can I use multi project to build my microservice? Can you please elaborate this? Thanks in advance..!!! ...
@Javatechie5 жыл бұрын
Yes we can build microservice with multi module project , I will upload one more tutorial with this concept , keep in touch
@bestdate95415 жыл бұрын
Multi-Module project is Jars within a jar running on a single JVM. Microservices are multiple jars in multiple JVM's or containerized using Docker and provided as SAAS(Software As A Service) using AWS or Azure.
@anilshankar4693 жыл бұрын
@@Javatechie please 🙏
@Javatechie3 жыл бұрын
Please checkout my saga choreography implementation . I did it with multi module approach
@udaysurse54383 жыл бұрын
Thank you @Java Techie
@rakshithm625210 ай бұрын
sir i want to build one project and inside that i want to create 2 microservices , finally i need one jar file to deploy and it should work that i can access individual microservice with respective endpoints , please make one video
@radhasatyanath94263 жыл бұрын
I have a scenario where I use 2 tables but they both work internally together I have 2 model classes 2 repositories but I need to write only one service layer and one controller how to implement
@Javatechie3 жыл бұрын
Write all logic in single service, inject both repository in service and start implementing code
@cavidrezzaqzade17724 жыл бұрын
I dont find spring initializer -> project type -> maven pom. older videos have. but i try it and cant see this maven pom.
@Javatechie4 жыл бұрын
Please add spring assistant plugin in your IDE
@razzagzade9034 жыл бұрын
@@Javatechie Thank you so much sir
@kirantulasi44752 жыл бұрын
If you have log4j logging jar in parent module...do child modules need to have seperate log4j jars?
@MallavarapuKiranKumar-t6i7 ай бұрын
Thank You
@maddipatlamadhura41403 жыл бұрын
Is Multi Module project and spring micro services both are same?
@Javatechie3 жыл бұрын
No both are completely different
@ericbraun55764 жыл бұрын
Will top level pom dependencies be included in every module? For instance if I want dependencies only pulled in by certain modules should they only be included in that module?
@arghyamitra32814 жыл бұрын
Sir for doctor dependency , the version is 0.0.1 snapshot, if we change any code in doctor module, in future and commit the changes , hospital module will automatically pick up or any version prob will happen
@Javatechie4 жыл бұрын
Code changes doesn't matter on version. If you are changing version of any module and then trying to add this as a dependency in different module then manually you need to update this
@arghyamitra32814 жыл бұрын
@@Javatechie thank you sir 😊
@armanmansur45614 жыл бұрын
very nice video sir. but how-to all this work on the server-side project now this is work on local. how can i add server path of my sub project please gives the positive response sir.
@Javatechie4 жыл бұрын
We should have some common web module From that module we need to integrate all .
@armanmansur45614 жыл бұрын
@@Javatechie Thanks for the reply sir how can we include sub project .jar file in our main project no need project path only gives jar path and access sub project. can we do this way ?
@thachhuunguyen33862 жыл бұрын
Many thank you
@weixiangng8279 Жыл бұрын
How about for eclipse for the multimodule?
@SandyRocks0074 жыл бұрын
Make video on swagger code gen and map struct
@Javatechie4 жыл бұрын
Yes it's in queue once I will upload AWS series then I will do this
@anandathakur49374 жыл бұрын
Each time I need to do maven clean install otherwise if I simply run it as spring boot application my latest changes are not reflecting
@Javatechie4 жыл бұрын
It shouldn't be case let me check
@RahulSharma-ie6mu2 жыл бұрын
Hello Sir, mvn clean install in model,service,repository gives me error main class not found. How make the jar of the whole project?
@mohammedessabri8702 Жыл бұрын
Hello Thank you for this explanation, i'm new with Intellij, and i have some issues. your video is clair, however in my Intellij, i have spring initializr instead of assitance, and it doesn't let me create a root project with pom. I am forced to select between jar and war, but not pom. also between Gradl and Maven, but not maven pom project like you did Have you any idea? thank you
@buildleadinnovate243 жыл бұрын
Multi module vs microservice.???
@Sworn9734 жыл бұрын
nicely done! I have a question, currently the new IDEA version doesn't have the "poem" version, that creates only the poem without any source. Any way of accomplishing it with the newest idea version?
@Javatechie4 жыл бұрын
I also struggle with this issue but didn't find any workaround yet . I will update you on this .
@Sworn9734 жыл бұрын
@@Javatechie That would be very nice of you. I just tried deleting everything else that is created when you create the first project, but now I'm getting an error when trying to pack the application, it's is trying to build the poem from the main application that is just a wrapper of the modules, failing to locate the spring starter class. It works if I just select the module and run it from the IDE though.
@Javatechie4 жыл бұрын
I will check this btw which version of ide you are trying
Hi! Let's say I have 2 DB. How can I configure this multi-module structure to accommodate these 2 DB? I have 2 separate service folder that has their own Repository. One is connected to Oracle and another one connected for Postgresql. - Oracle ---+ Service ---+ Repository - Postgresql ---+ Service ---+ Repository I want these modules to be connected on separate DB when I run the Main Application
@manjunathk89693 жыл бұрын
Could you please do multi module maven Spring boot project with integration test suite
@subba185 жыл бұрын
Can you post the same using Gradle instead of Maven.
@ajaydhiman23684 жыл бұрын
If we add the dependencies in Parent then it would not be accessible to Sub modules?
@srikanthdintakurthi79113 жыл бұрын
If we annotate every repository with @Repository then is @EnableJpaRepositories needed?
@Javatechie3 жыл бұрын
No not required
@radu5132 жыл бұрын
how do i deploy the we bapplication to a weblogic server if its packaged as a jar? it needs to be a war file
@buildleadinnovate245 жыл бұрын
there is no spring assistance in eclipse ...what we have to choose in eclipse
@Javatechie5 жыл бұрын
In eclipse we can use STS plugin to create spring boot project. Please check in my all previous example I used eclipse STS plugin, do the same
@buildleadinnovate245 жыл бұрын
@@Javatechie how to create multiple module in spring boot
@Javatechie5 жыл бұрын
Sandhya this is what I did using Spring boot please check once again
@buildleadinnovate245 жыл бұрын
@@Javatechie could you plz share the link of video where you use spring boot multi module you used there in eclipse :)
@Javatechie5 жыл бұрын
@@buildleadinnovate24 Check the patent pom.xml where I defined all spring boot starter dependency All the child module , which inherited from parent can reuse those dependency Just think once , in repository how we can get JpaRepository or how we can get @RestController annotation ? It's there in parent right , explicitly you no need to create all sub modules as spring boot application .
@ranjitw.85594 жыл бұрын
Dear Sir, I have seen very 3 year old java developed by other team.. On one of the project I see they are using Maven multi module project but modules included are 162 count and because of it size of code increase since it has unit test cases for each module.. I have a task to configure that project on Jenkins, but size of the Java project git repo is 6 GB , could you please help and guide on approach on how to reactor a such multi module project ? Thank You, Ranjit W.
@ajaydhiman23684 жыл бұрын
Is it necessary to add the dependencies in Parent Project instead of different Modules ?
@Javatechie4 жыл бұрын
Yes
@domlee75992 жыл бұрын
Hi I do not see any module-info.java file. Was wondering if the child pom.xml acts as a module-info.java file?
@yashgupta-dw7sn3 жыл бұрын
Can you please update this video,as i can't see the Spring assistant option in my intellij
@Javatechie3 жыл бұрын
Yash man now this plugin is not available in community edition. I am struggling to find workaround 😂
@MahmudulHasanPiyalSoftwareEngi8 ай бұрын
Cannot run the jar file in multi module project. It says no main manifest attribute. Can anyone help?
@anandm99644 жыл бұрын
Thank you, Sir
@bibekbhusansahoo9412Ай бұрын
Hi can you make one video how to create jar of multi module spring boot project . When I try to run mvn clean install -U it throws error like package org.javatechie.model.doctor does not exist
@degiherlambang28262 жыл бұрын
How build to Jar version? so that you can run on another local server
@__nitinkumar__3 жыл бұрын
Please compare this with microservice
@Javatechie3 жыл бұрын
Do checkout my saga design pattern implementation
@aleksasmolovic9174 жыл бұрын
I migrated my app to modules, but when I run the app I get the following: Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured... What is the solution for said problem?
@Javatechie4 жыл бұрын
You might missed to add spring data jpa dependency or add persist module as a dependency in required module
@aleksasmolovic9174 жыл бұрын
@@Javatechie Actually it all worked before migration, all my dependecies are in parent pom.xml.
@ajaydhiman23684 жыл бұрын
If new developer in team need to import this project then it has to import Parent only OR need to import all the sub modules as well?
@MrMikomi3 жыл бұрын
The whole lot would be in git as a repo. You clone the repo.