GithubHelp home page GithubHelp logo

felipedss / spring-boot-multimodule Goto Github PK

View Code? Open in Web Editor NEW

This project forked from deepaksrivastav/spring-boot-multimodule

0.0 1.0 0.0 15 KB

A sample springboot multi module project

Java 95.01% HTML 4.99%

spring-boot-multimodule's Introduction

Spring Boot Multimodule project example

Proofs of concept that shows how to generate Spring Boot multimodule applications.

Description

This project is an Spring Boot multimodule application with the following structure.

.
├── application
│   ├── pom.xml
│   └── src
│       └── main
│           ├── java
│           │   └── sample
│           │       └── multimodule
│           │           ├── SampleWebJspApplication.java
│           │           └── web
│           │               └── WelcomeController.java
│           └── resources
│               ├── application.properties
│               └── templates
│                   └── welcome
│                       └── show.html
├── model
│   ├── pom.xml
│   └── src
│       └── main
│           └── java
│               └── sample
│                   └── multimodule
│                       └── domain
│                           └── entity
│                               └── Account.java
├── pom.xml
├── repository
│   ├── pom.xml
│   └── src
│       └── main
│           └── java
│               └── sample
│                   └── multimodule
│                       └── repository
│                           └── AccountRepository.java
├── service-api
│   ├── pom.xml
│   └── src
│       └── main
│           └── java
│               └── sample
│                   └── multimodule
│                       └── service
│                           └── api
│                               ├── AccountNotFoundException.java
│                               └── AccountService.java
└── service-impl
    ├── pom.xml
    └── src
        └── main
            └── java
                └── sample
                    └── multimodule
                        └── service
                            └── impl
                                └── AccountServiceImpl.java

Every module match with some application layer (service layer, repository layer, web layer, model, etc..).

Parent - Pom Aggregator

This module is a maven aggregator that contains all application modules. Also, include all common dependencies needed by more than one module. Dependencies are defined without version because this project has defined Spring IO Platform as parent.

Project Module - Model

Module that contains all Entities and Visual Objects to be used in the project. It doesn’t have any dependencies.

Project Module - Repository

Module that contains all repositories to be used in the project. Depends of Model Module.

Project Module - Service API

Module that contains API of all project services. Depends of Model Module.

Project Module - Service Implementation

Module that contains services implementation defined on Service API module. Depends of Repository Module and Service API Module.

Project Module - Application

This is the main module of the project. It contains Application.java class, that contains main method, necessary to run Spring Boot applications. It contains all necessary application configuration properties. It contains all web controllers, views and web resources. It include Model Module and Service Implementation module as dependency that contains Model Module, Repository Module and Service API module.

Test

Follow these instructions to execute application using embedded tomcat server:

  • Generate project distribution using mvn clean install command on Parent module.

  • Execute mvn spring-boot:run command on Application module (contains .war)

  • Open browser on http://localhost:8080

  • Test http://localhost:8080/. You should see account information with "23" number.

spring-boot-multimodule's People

Contributors

deepaksrivastav avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.