Spring Maven project structure pom.xml

ReconditusNeumen :

I'd like to get help in setting up a multi-module Maven project using Spring Boot.

Correct me if I'm wrong but I've read that Spring-Boot reads the start main Application (Annotated with @SpringBootApplication and ran with SpringApplication.run) and finds the necessary classes through reflection. Which means that it first accesses the start class and then proceeds to find the controllers, models, repositories. If so, how do I set up the dependency in the pom.xml of each module if I had a project structure like this:

app
--src
--pom.xml

core
--pom.xml

--models
----/pom.xml

--controllers
----/pom.xml

--repositories
----/pom.xml

pom.xml
kj007 :

Please have a look complete guide how to create multi module project in spring boot.

https://spring.io/guides/gs/multi-module/

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=78092&siteId=1