Giter VIP home page Giter VIP logo

springrestapi's Introduction

Spring Rest Api 만들기 프로젝트

0. 개요

1. 개발환경

  • Java 8~11
  • SpringBoot 2.x
  • SpringSecurity 5.x
  • JPA, H2
  • Intellij Community

2. 프로젝트 실행

  • H2 database 설치
  • intellij lombok 플러그인 설치
    • Preferences -> Plugins -> Browse repositories... -> search lombok -> Install "IntelliJ Lombok plugin"
  • Enable annotation processing
    • Preferences - Annotation Procesors - Enable annotation processing 체크
  • build.gradle에 lombok 추가(Git을 받은경우 이미 추가되어있음)
    • compileOnly 'org.projectlombok:lombok:1.16.16'
  • 실행
    • Run -> SpringBootApiApplication
  • Swagger

3. DDL

create table user ( msrl bigint not null auto_increment, name varchar(100) not null, password varchar(100), provider varchar(100), uid varchar(50) not null, primary key (msrl) ) engine=InnoDB;

create table user_roles ( user_msrl bigint not null, roles varchar(255) ) engine=InnoDB;

alter table user add constraint UK_a7hlm8sj8kmijx6ucp7wfyt31 unique (uid);

alter table user_roles add constraint FKel3d4qj41g0sy1mtp4sh055g7 foreign key (user_msrl) references user (msrl);

4. 목차

springrestapi's People

Contributors

codej99 avatar

Watchers

James Cloos 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.