/sp_boot

Spring Boot multi projects repository example

Primary LanguageJavaMIT LicenseMIT

sp_boot

Spring Boot multi projects (web, api, bat and lib) repository example.

---
title: Projects Relation
---
classDiagram

    lib <|-- web
    lib <|-- api
    lib <|-- bat

    class lib{
        Service service
        Mapper mybatisMapper
        Dao dao
        entity
        +dbAccess()
    }

    class web{
        Controller webController
        Dto dto
        +setModelToView()
    }
    class api{
        Controller apiController
        Dto dto
        +returnJson()
    }

    class bat{
        Processor processor
        Config config
        + main()
    }


    class Dao{
    }

    class Dto{
        Dao dao
    }
    Dao *-- Dto

Loading
Dao can be used by Dto for example, view condition is same as db search condrion.

web

web project is Spring Web for MVC to retuen view with server side rendering.

api

api project is Spring Web for Rest to get Json responces.

bat

bat project is Spring Batch for heavy process to take times.

lib

lib project is a library project, other projects use this project for business to access DB.