Create a Spring Boot Application Using Multiple Maven Modules [Intermediate Spring Boot]

  • Source code can be found on GitHub:
    Discover how to create Spring Boot projects using multiple Maven modules and to keep your code-base more organised in the long run.
    Most of the examples used to demonstrate Spring Boot are rather simple. In 99% of cases, a single Maven module is used. But, in the real world, developers are building complex applications and they want to structure their code across multiple modules. Will it be difficult? No, absolutely not:) We just need to modify a couple of things in order to make the project work:
    - The Spring Boot main application class needs to be modified in order to let Spring know to scan for beans in all the Maven modules
    - The Maven Build Plugin needs to be added in the pom.xml file of the Spring Boot main application class

    Category : Programming & Development


    0 Comments and 0 replies
This website uses cookies to ensure you get the best experience on our website
Privacy policyAccept and close