Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
8baf881
refactor(user): 공통 모듈 적용
Doritosch Jan 15, 2026
253f023
Merge branch 'dev' of https://github.com/ElevenHub/HubEleven into ref…
Doritosch Jan 19, 2026
af8d1e5
refactor: hub, order, delivery, stock 공통 모듈 적용
Doritosch Jan 19, 2026
68726f2
refactor: hub, order, delivery, stock 공통 모듈 적용
Doritosch Jan 19, 2026
c4838af
refactor(product): 공통 응답 방식 수정
Doritosch Jan 19, 2026
f150b7c
refactor(delivery): client 응답 형식 수정
Doritosch Jan 19, 2026
a539311
refactor(delivery): client 응답 형식 수정
Doritosch Jan 19, 2026
e0b9be3
chore: spotlessApply 적용
Doritosch Jan 19, 2026
346726c
feat: gateway 수정 및 user 공통 모듈 적용
Doritosch Jan 26, 2026
cb9bdb8
feat(user): 권한 검증 추가
Doritosch Jan 27, 2026
c0a2860
refactor(user): 사용자 정보 조회 방식을 헤더에서 @AuthenticationPrincipal로 변경
Doritosch Jan 27, 2026
1ddedf1
refactor(user): 권한 검증 로직 제거 및 response, result에서 password 필드 제거
Doritosch Jan 27, 2026
8688c97
refactor(user): 중복된 에러 코드 제거
Doritosch Jan 27, 2026
b792be9
refactor(user): 불필요한 클래스 제거
Doritosch Jan 27, 2026
f7f1291
refactor(user): validation 중복 제거
Doritosch Jan 27, 2026
141fe09
refactor(user): tokenProvider() @Bean 제거
Doritosch Jan 27, 2026
7bd78b2
refactor(user): 중복 코드 제거
Doritosch Jan 27, 2026
9a0011c
fix(user): git conflict 해결
Doritosch Feb 8, 2026
13b0b02
feat(user): errorcode get 메서드 추가
Doritosch Feb 8, 2026
3fa82ff
fix(user): errorcode 수정
Doritosch Feb 8, 2026
0dfbae8
chore(user): spotlessApply 적용
Doritosch Feb 8, 2026
7f0e631
chore(gateway): application.yml reactive 설정 추가
Doritosch Feb 12, 2026
77382f8
fix: swagger ui 작업 중 생긴 문제 해결
Doritosch Feb 13, 2026
1cadeb2
chore: git 충돌 해결
Doritosch Feb 13, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ services:
SERVICE_NAME: user
container_name: user-service
ports:
- 8082:8082
- 8081:8081
environment:
- EUREKA_CLIENT_SERVICEURL_DEFAULTZONE=${EUREKA_URL}
- SPRING_CLOUD_CONFIG_URI=${CONFIG_SERVER_URI}
Expand Down
16 changes: 13 additions & 3 deletions gateWay/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ repositories {
mavenCentral()
}

configurations {
all {
exclude group: 'org.springframework.boot', module: 'spring-boot-starter-web'
exclude group: 'org.springframework.boot', module: 'spring-boot-starter-tomcat'
}
}

dependencies {
// JWT (분리된 구조)
implementation 'io.jsonwebtoken:jjwt-api:0.12.6'
Expand All @@ -26,14 +33,17 @@ dependencies {

// Spring Boot
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'org.springframework.boot:spring-boot-starter-security'

// Spring Cloud
implementation 'org.springframework.cloud:spring-cloud-starter-gateway-server-webflux'
implementation 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'

// WebFlux Security
implementation 'org.springframework.boot:spring-boot-starter-oauth2-resource-server' // JWT 검증
// lombok
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'

// 공통 모듈
implementation 'com.github.ElevenHub:HubEleven-common:v0.0.1'

// lombok
compileOnly 'org.projectlombok:lombok'
Expand Down
7 changes: 7 additions & 0 deletions user/src/main/java/com/hubEleven/user/UserApplication.java
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
package com.hubEleven.user;

import com.commonLib.common.exception.GlobalExceptionHandler;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.FilterType;

@SpringBootApplication
@ComponentScan(
basePackages = {
"com.hubEleven.user", // 현재 서비스 패키지
"com.commonLib.common" // 공통 모듈 패키지
},
excludeFilters = {
@ComponentScan.Filter(
type = FilterType.ASSIGNABLE_TYPE,
classes = GlobalExceptionHandler.class)
})
public class UserApplication {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import io.swagger.v3.oas.models.info.Info;
import io.swagger.v3.oas.models.security.SecurityRequirement;
import io.swagger.v3.oas.models.security.SecurityScheme;
import io.swagger.v3.oas.models.servers.Server;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

Expand All @@ -19,6 +20,7 @@ public OpenAPI customOpenAPI() {
.title("User Service API")
.version("1.0")
.description("User Service API with JWT Authentication"))
.addServersItem(new Server().url("http://localhost:8081").description("Local server"))
.addSecurityItem(new SecurityRequirement().addList("Bearer Authentication"))
.components(
new Components()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
package com.hubEleven.user.infrastructure.exception;

import com.commonLib.common.exception.GlobalExceptionHandler;
import io.swagger.v3.oas.annotations.Hidden;
import org.springframework.web.bind.annotation.RestControllerAdvice;

@RestControllerAdvice
@Hidden
@RestControllerAdvice(basePackages = "com.hubEleven.user.presentation.controller")
public class UserGlobalExceptionHandler extends GlobalExceptionHandler {}