Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
a7bb7f2
inititialize spring boot project
duckchanahn Feb 14, 2025
6640c7a
fix: build type (war -> jar)
duckchanahn Feb 14, 2025
702abec
feat: MVC 아키텍처 구조 설정
duckchanahn Feb 14, 2025
382c1c7
fix: DTO naming rule 변경 (첫글자 대문자로 통일)
duckchanahn Feb 14, 2025
182c1e6
fix: add prefix in root Project name (ktb-)
duckchanahn Feb 14, 2025
b66dd7c
feat: API 문서화를 위한 springdoc-openapi 의존성 추가
duckchanahn Feb 14, 2025
69a64e7
feat: WebConfig.java Cors 설정 추가
duckchanahn Feb 14, 2025
4fd9a89
feat: DB 조회를 위한 jpa 의존성 추가
duckchanahn Feb 15, 2025
b75e951
fix : 주석 할일 태그 추가
duckchanahn Feb 15, 2025
b704cd1
feat: lombok 의존성 추가
duckchanahn Feb 15, 2025
1bfa4eb
fix: 성공 응답 클래스 이름 변경
duckchanahn Feb 15, 2025
0ed5355
fix: ErrorCode 구현 및 위치 변경
duckchanahn Feb 15, 2025
a49ecf0
feat: SwaggerConfig 구현
duckchanahn Feb 15, 2025
db637d4
feat: 응답 형식 통일
duckchanahn Feb 15, 2025
c2be0a2
feat: CustomErrorCode 구현
duckchanahn Feb 15, 2025
41c74dc
feat: Error 처리 방식 통일
duckchanahn Feb 15, 2025
88abfef
feat: mysql driver 의존성 추가
duckchanahn Feb 15, 2025
6b5947c
feat: lombok 어노테이션 프로세서 의존성 추가
duckchanahn Feb 15, 2025
86d6fb3
feat: Database 연결 추가 및 properties -> yml 파일확장자 변경
duckchanahn Feb 15, 2025
dc3c45f
feat: GlobalExceptionHandler 날짜 관련 글로벌 에러 처리 추가
duckchanahn Feb 15, 2025
46a2c36
feat: GlobalExceptionHandler 날짜 관련 글로벌 에러 처리 추가
duckchanahn Feb 15, 2025
8898e89
feat: spring-boot-starter-validation 의존성 추가
duckchanahn Feb 15, 2025
c2cb04c
feat: 특정 기업의 주가(종가) 정보를 조회하여 응답을 주는 API 구현
duckchanahn Feb 15, 2025
e3e1c3a
feat: 호환되는 버전 확인 주석 추가
duckchanahn Feb 15, 2025
e742507
fix : 글로벌 에러 코드 처리 방식 수정 및 위치 이동
duckchanahn Feb 15, 2025
4ca90eb
fix : 글로벌 에러 코드 처리 방식 수정
duckchanahn Feb 15, 2025
bd16056
feat: API_KEY 검증 구현
duckchanahn Feb 15, 2025
9bef816
fix: 에러 처리 방식 업데이트
duckchanahn Feb 16, 2025
212bcb5
fix: 에러 처리 방식 업데이트
duckchanahn Feb 16, 2025
c0f47c5
fix: 사용하지 않는 import 및 의미없는 주석 제거
duckchanahn Feb 16, 2025
6628e2d
feat: google guava (API Throttling 라이브러리) 의존성 추가
duckchanahn Feb 16, 2025
cf7f577
feat: API Throttling(10건/10초) 구현
duckchanahn Feb 16, 2025
f1a59d4
feat: logback-spring 설정 추가
duckchanahn Feb 16, 2025
cb3401f
feat: 응답 형식(json, xml) 선택을 구현하기 위한 dataformat 라이브러리 의존성 추가 및 build.gr…
duckchanahn Feb 16, 2025
1a05513
fix: log 기본 디렉토리 설정 변경
duckchanahn Feb 16, 2025
32f8e62
feat: 응답 형식 (xml/json) 선택 기능 구현
duckchanahn Feb 16, 2025
1b75cc5
fix: CORS 설정 변경
duckchanahn Feb 16, 2025
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
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/gradlew text eol=lf
*.bat text eol=crlf
*.jar binary
117 changes: 117 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
HELP.md
.gradle
build/
!gradle/wrapper/gradle-wrapper.jar
!**/src/main/**/build/
!**/src/test/**/build/

### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
bin/
!**/src/main/**/bin/
!**/src/test/**/bin/

### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr
out/
!**/src/main/**/out/
!**/src/test/**/out/

### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/

### VS Code ###
.vscode/

### Mac OS ###
.DS_Store

### Windows ###
Thumbs.db

### Log files ###
*.log
logs/

### Local configuration ###
application-local.yml
application-local.properties

### Java ###
*.class
*.jar
*.war
*.ear
*.zip
*.tar.gz
*.rar

### JPA Generate ###
generated/

### QueryDSL ###
/src/main/generated/

### Private Keys ###
*.pem
*.key
*.p12
*.pfx

### JWT ###
*.jks

### Environment Variables ###
.env
.env.*

### Test Coverage Reports ###
jacoco/

### Docker ###
docker-compose.override.yml

### Database ###
*.db
*.sqlite
h2db/
*.h2.db

### Redis ###
*.rdb
dump.rdb

### Node (프론트엔드 포함된 경우) ###
node_modules/
npm-debug.log
yarn-debug.log
yarn-error.log
package-lock.json
yarn.lock

### Code Coverage ###
/coverage/
.coverage
coverage.xml
*.cover

### Spring Boot DevTools ###
.restart

### Temp files ###
*.tmp
*.temp
*~
44 changes: 44 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
plugins {
id 'java'
id 'org.springframework.boot' version '3.4.2'
id 'io.spring.dependency-management' version '1.1.7'
}

group = 'org.ktb'
version = '0.0.1-SNAPSHOT'

java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}

repositories {
mavenCentral()
}

// 호환되는 버전 확인 : https://docs.spring.io/spring-boot/appendix/dependency-versions/coordinates.html#
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'


// lombok
compileOnly 'org.projectlombok:lombok:1.18.36' //lombok
annotationProcessor 'org.projectlombok:lombok' // lombok 어노테이션 프로세서

// DB
implementation 'org.springframework.boot:spring-boot-starter-data-jpa:3.4.2' // jpa
implementation 'com.mysql:mysql-connector-j' // MySQL Driver

implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.8.4' // springdoc
implementation 'org.springframework.boot:spring-boot-starter-validation:3.4.2' // 유효성 검증을 위한 validation 라이브러리
implementation 'com.google.guava:guava:33.3.1-jre' // API Throttling 구현을 위한 라이브러리
implementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-xml' // 응답 형식(json, xml) 선택을 구현하기 위한 dataformat 라이브러리

}

tasks.named('test') {
useJUnitPlatform()
}
7 changes: 7 additions & 0 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12.1-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading