728x90
❔ 해당 프로젝트(?) 를 하게 된 이유
로그인 기능 구현을 할 일이 있어서 작업을 하다가 한번도 JWT를 사용해본적이 없어서 공부 + 실무 적용을 위해 진행
⚙️ 개발 환경
| JDK | openJDK 17 |
| Spring Boot | 3.3.0 |
| Gradle | 8.8 |
| DB | H2 |
| Swagger(Springdoc) | 2.0.2 |
| IDE | Intellij |
ℹ️ 초기 build.gradle 정보
plugins {
id 'java'
id 'war'
id 'org.springframework.boot' version '3.3.0'
id 'io.spring.dependency-management' version '1.1.5'
}
group = 'org.jjuni'
version = '0.0.1-SNAPSHOT'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-web'
compileOnly 'org.projectlombok:lombok'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
runtimeOnly 'com.h2database:h2' // DB
annotationProcessor 'org.projectlombok:lombok'
providedRuntime 'org.springframework.boot:spring-boot-starter-tomcat'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
// implementation 'org.springframework.boot:spring-boot-starter-security'
// testImplementation 'org.springframework.security:spring-security-test' // security(JWT 적용할때 풀 예정)
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}
tasks.named('test') {
useJUnitPlatform()
}
➡️ 진행 순서
1️⃣ Swagger 적용
2️⃣ JWT 적용
3️⃣ 최종 테스트
728x90
반응형
LIST
'BE > Java' 카테고리의 다른 글
| Springboot3 + Swagger + Jwt (3) (0) | 2024.06.21 |
|---|---|
| Springboot3 + Swagger + Jwt (2) (0) | 2024.06.20 |
| JWT(Json Web Token) 이란? (1) | 2024.06.11 |
| Scanner vs BufferReader (0) | 2024.06.03 |
| Stack 이란? (0) | 2024.02.13 |