Code Monkey home page Code Monkey logo

spring_boot_rest_api's Introduction

Spring Boot REST API

1. Description

1.1 File Directory

$> tree -d
.
├─ main
│   ├─ java
│   │   └─ com
│   │       └─ tutorial
│   │           └─ springboot
│   │               │   Application.java            # 메인 실행 class
│   │               ├─ common
│   │               │       CommonResponse.java     # 공통 response format
│   │               └─ api
│   │                   ├─ controllers
│   │                   ├─ services
│   │                   ├─ repository
│   │                   ├─ responses
│   │                   ├─ dto
│   │                   └─ models
│   └─ resources
│       └─ application.yml                          # Properties 관리 파일
└─ test
    └─ java

1.2 Architecture

  • controllers : 유저의 HTTP request 값을 받아서 service 에 전달
  • services : 비즈니스 로직을 처리
  • repository : DB에 접근하여 데이터 가져옴
  • responses : 반환 할 response 처리
  • dto : DTO - 계층간 교환되는 데이터를 처리할 객체
  • models : DAO - DB 테이블에 접근할 데이터 형태

2. Run Server

main class 실행 후 http://localhost:8080/ 에 접속

spring_boot_rest_api's People

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.