GitPedia

SpringRestApi

SpringBoot2, SpringSecurity, JWT, Stateless Restful API

From codej99·Updated February 19, 2026·View on GitHub·

- SpringBoot2 framework 기반에서 RESTful api 서비스를 Step by Step으로 만들어 나가는 프로젝트 - daddyprogrammer.org에서 연재 및 소스 Github 등록 - https://daddyprogrammer.org/post/series/springboot2-make-rest-api/ The project is written primarily in Java, first published in 2019. Key topics include: h2-database, intellij-community, jpa, korean, springboot2.

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

Contributors

Showing top 1 contributor by commit count.

View all contributors on GitHub →

This article is auto-generated from codej99/SpringRestApi via the GitHub API.Last fetched: 6/26/2026