SpringRestApi Save

SpringBoot2, SpringSecurity, JWT, Stateless Restful API

Project README

Java_8 Java_11 Spring_Boot Spring_Security GitHub stars

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. 목차

Open Source Agenda is not affiliated with "SpringRestApi" Project. README Source: codej99/SpringRestApi
Stars
117
Open Issues
0
Last Commit
3 years ago

Open Source Agenda Badge

Open Source Agenda Rating