Skip to content

kenu/bbs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Spring Boot 게시판

H2 데이터베이스를 사용한 기본적인 Spring Boot 게시판 웹 애플리케이션입니다.

기능

  • 게시글 목록 조회
  • 게시글 작성
  • 게시글 상세 조회
  • 게시글 수정
  • 게시글 삭제

기술 스택

  • Spring Boot 3.2.0
  • Spring Data JPA
  • H2 Database (인메모리)
  • Thymeleaf (템플릿 엔진)
  • Maven

실행 방법

  1. 프로젝트 루트 디렉토리에서 다음 명령을 실행합니다:
mvn spring-boot:run
  1. 웹 브라우저에서 http://localhost:8080 접속

H2 데이터베이스 콘솔

개발 중에는 H2 데이터베이스 콘솔을 통해 데이터를 직접 확인할 수 있습니다:

  • URL: http://localhost:8080/h2-console
  • JDBC URL: jdbc:h2:mem:bbsdb
  • 사용자명: sa
  • 비밀번호: (비어있음)

엔드포인트

  • GET / - 게시글 목록
  • GET /posts/new - 새 글 작성 폼
  • POST /posts - 새 글 저장
  • GET /posts/{id} - 게시글 상세 조회
  • GET /posts/{id}/edit - 게시글 수정 폼
  • POST /posts/{id} - 게시글 수정
  • POST /posts/{id}/delete - 게시글 삭제

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors