Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | |||
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | 29 | 30 |
Tags
- llm
- Lv.2
- 커밋 메시지
- 부트스트랩
- 세션로그인
- 프로젝트
- Dockerfile
- cors
- 로그인
- springboot
- Spring
- 프로그래머스
- spring boot
- 해외봉사
- LV2
- mysql
- crud
- 알고리즘
- 우테코
- fastapi
- 쿠키로그인
- 게시판
- docker
- 코딩테스트
- 회고
- 서버 꺼짐
- Java
- 네팔
- openAI
- OOM
Archives
- Today
- Total
s00jin 님의 블로그
0. [SpingBoot] 초기 설정 및 서버 헬스 체크 구현하기 본문
내가 해보고 싶은 기술 + 기능들을 마음껏 테스트 해볼 나만의 사이트를 만들고 있다.
일단 나는 자바 백엔드 개발자를 희망하고 있다.
그래서 Spring, SpringBoot, DBMS, Docker, AWS 등등 다양한 것들을 이 사이트에 시도해보고, 기록할 예정이다!!
초기 설정


서버 헬스 체크 url을 따로 만들어 서버가 살아있는지 확인하는 간단한 api 따줬다.
/health 로 접근 시 로드된다.
build.gradle
블로그 작성을 까먹고 다른 기능 구현 도중에 가져온 코드라서 완전한 초기 코드는 아니다.ㅎㅎ
plugins {
id 'java'
// 초기세팅 0
id 'org.springframework.boot' version '3.2.0'
id 'io.spring.dependency-management' version '1.1.0'
}
group = 'org.example'
version = '1.0-SNAPSHOT'
repositories {
mavenCentral()
}
dependencies {
// 초기 세팅 1
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
// // 인메모리 데이터베이스 (초기세팅 2)
// runtimeOnly 'com.h2database:h2'
// mysql
implementation 'mysql:mysql-connector-java:8.0.32'
// lombok
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
// thymeleaf
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
// notnull + notempty + notblank를 위해
implementation 'org.springframework.boot:spring-boot-starter-validation'
}
test {
useJUnitPlatform()
}
'프로젝트 > 하고 싶은거 다해보는 내 사이트' 카테고리의 다른 글
| 4. [로그인] 세션 로그인 구현하기 - Spring/SpringBoot (1) | 2025.07.07 |
|---|---|
| 3-1. [로그인/에러] 쿠키 로그인 시 500 에러 (whitelabel error page / 500) (0) | 2025.07.01 |
| 3. [로그인] 쿠키 로그인 구현하기 - Spring/SpringBoot (0) | 2025.07.01 |
| 2. [로그인] 로그인 구현 전 설계하기 (0) | 2025.06.26 |
| 1. [MySQL/SpringBoot] 로컬 MySQL 연결하기 (0) | 2025.06.26 |