본문 바로가기
💻 뚝딱뚝딱/북북클럽

[개발일지#000] 프로젝트 생성 (프로젝트 생성, MySQL 연결, 개발 편의 설정, 패키지 설정 등)

by 뚜루리 2025. 4. 16.
728x90
320x100

🎯 오늘의 목표

  • 프로젝트 생성 (Dependencies 추가)
  • 프로젝트 환경설정 (MySQL, 로깅, Lombok 등)

⚙️ 진행한 작업

  • Spring Initializr (https://start.spring.io/) 를 활용하여 Dependencies 추가 및 프로젝트 생성
  • MySQL 설정
  • Lombok 추가 및 설정
  • 로깅 추가

🛠️ 개발내용

📌 Spring Initializr 를 활용하여 Dependencies 추가 및 프로젝트 생성

  •  Spring Initializr (https://start.spring.io/)
  • 추가한 Dependencies : Lombok, Spring Boot Dev Tools, Spring Web, Thymeleaf, MySQL Driver, Vaildation, Spring Security, OAuth2 Client, Spring Data JPA, Spring Data Redis

 

아래의 포스팅 참고

 

[인텔리제이/스프링] 스프링스타터로 스프링 프로젝트 생성하기

스프링 프로젝트를 만들 때 스프링스타터 사이트를 이용하면 간편하게 만들 수 있음. 1. 스프링 스타터 사이트 접속 https://start.spring.io/ 2. 아래와 같은 화면이 있을 텐데 만들 프로젝트의 설정을

ddururiiiiiii.tistory.com

 

 


📌 MySQL 설정

아래의 포스팅 참고

 

[스프링(Spirng)] Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be confi

[문제발생]스프링스타터를 이용하여 프로젝드를 생성해서 첫 Run을 했더니 아래와 같은 에러메세지가 떴다.***************************APPLICATION FAILED TO START***************************Description:Failed to configure a

ddururiiiiiii.tistory.com


📌 로깅 설정

 

[Spring] SQL 로그 출력 방법 총정리 (feat. show-sql, format_sql, log4jdbc,p6spy)

스프링에서 SQL을 로깅하는 것은 디버깅과 성능 분석에서 아주 중요한 것중에 하나인데, 스프링에서는 어떤 SQL 로깅 방법 들이 있고, 어떻게 사용하며 어떨 때 사용하는지 총정리 해보자. 1. spring

ddururiiiiiii.tistory.com

 


📌 Lombok 활성화

아래의 포스팅 참고

 

인텔리제이(IntelliJ)에서 롬복(Lombok) 활성화 하는 방법

1. 디펜던시(dependencies)에 Lombok 추가build.gradledependencies { annotationProcessor 'org.projectlombok:lombok'} 2. Lombok 설치[Settings] - [Plugins] - [Lombok] install 3. Lombok 기능 활성화 [Settings] - [Annotation Processors] - [Enable

ddururiiiiiii.tistory.com

 


 

📌 패키지 구조 : 도메인 중심으로 설계

아래의 포스팅 참고

 

프로젝트 패키지 구조 : 레이어 중심 VS 도메인 중심

프로젝트 패키지 구조는 크게 레이어 중심과 도메인 중심이 있다. 어떤 차이점이 있고 어떨 때 어떤 식으로 하는 것이 좋을지 정리. 📦 레이어 중심 구조 (Layered)com.bookbookclub├── controller├─

ddururiiiiiii.tistory.com

 

728x90
320x100