Giter Site home page Giter Site logo

spring-sample's Introduction

Spring Boot 샘플 프로젝트

시작하며

Spring Boot를 활용한 DB CRUD 샘플과 파일 다운로드 샘플을 포함하고 있습니다.

Overview

  • 프로젝트 Checkout
  • 프로젝트 실행
  • DB(H2 DB) 콘솔 실행 방법
  • API 테스트 방법
  • 차후 개선방향

프로젝트 Checkout

프로젝트 다운로드 방법입니다. git을 설치 후 아래 명령어로 프로젝트를 다운로드 합니다. spring-sample 디렉토리가 생성되고, 소스를 다운로드 합니다.

$ git clone [email protected]:litlhope/spring-sample.git

프로젝트 실행

프로젝트 디렉토리로 진입하여 스프링 부트를 실행 합니다.

$ cd spring-sample
$ gradlew bootRun

DB(H2 DB) 콘솔 실행 방법

프로젝트 실행 후 http://localhost:8080/h2-console 접속하여 DB 콘솔에 접속 할 수 있습니다. 프로젝트는 기본 설정으로 작성되어 있으므로, 별도 설정 변경 없이 하단의 Connect버튼을 클릭하여 접속 할 수 있습니다.

API 테스트 방법

  1. Swagger 접속

  2. API 테스트

    • board-controllerfile-controller를 열어 CRUD 및 파일 다운로드 테스트 합니다.

차후 개선방향

  1. 스웨거 설정 조정

    • 사용하는 API만 표기 되도록 설정 조정
  2. DB 설정 조정

    • 실제 사용하는 DB(MariaDB, MySQL 등)으로 설정 조정
  3. 파일 업로드 샘플 추가

  4. 프로젝트에서 유용하게 사용 할 수 있는 각종 샘플 추가

spring-sample's People

Contributors

litlhope 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.