https://youtu.be/stZrmQaH4f0?si=qVtzbPZ9oYSvI7-W
본격적인 코딩을 하기 전 application.yml 설정을 하는 내용입니다. 스프링부트(Spring Boot)를 이용한 회원 프로젝트입니다. IntelliJ IDEA Community + Mysql + JDK11 을 사용하였습니다. 설정과 관련된 방법 등은 velog에 정리해 두었으니 참고하시고 문제가 있으신 분은 댓글로 남겨주시면 도움을 드릴 수 있도록 하겠습니다. 구독, 좋아요 부탁드립니다^^
프로젝트 전체 소스코드(github): https://github.com/codingrecipe1/memb...
velog 주소: https://velog.io/@codingrecipe
스프링부트는 기본적으로 서버가 돌아가야 웹서비스를 구현할 수 있기 때문에
서버에 대한 설정은 보통 톰캣을 이용해서 한다고하는데
스프링 프레임워크는 별도로 톰캣을 설치하고 포트설정을 한다는 지 이런 작업을 했겠지만
스프링부트는 톰캣이 기본적으로 내장이 되어있기 때문에 별도 설치는 없고
기본적으로 라이브러리는 포함이 되어있다고 할 수 있다
포트설정같은거는 할 수 있는데 굳이 안해도 기본 8080으로 잡히긴 하니까
우리 눈에 보이게 8081로 설정할 수 있다
설정할 수 있는 파일이 application.properties (삭제하고)
나쁘지 않지만 요즘 많이 쓰는 설정 파일인 application.yml 파일로 (생성해주기)
resources 밑에 application.yml (얌, 야물파일)
server:
port: 8081
지금은 디비에 대한 내용은 빠져있다
이런거까지 추가하고 진행하면 세팅하다 지치기 때문
뒤에서 추가로 디비세팅은 할 것임
세팅 끝~
'Hardcode > member' 카테고리의 다른 글
5-1 MySql Workbench (1) | 2024.10.03 |
---|---|
[스프링부트 회원 프로젝트] 05_회원가입_DB 연동하기(springboot, mysql, jpa, login) by. 코딩레시피 (1) | 2024.10.03 |
[스프링부트 회원 프로젝트] 02_프로젝트 구조 살펴보기(springboot, mysql, jpa, login) by 코딩레시피 (0) | 2024.09.29 |
[SpringBoot] Spring Initializr로 프로젝트 만들기 by 코딩레시피 (0) | 2024.09.29 |
[스프링부트 회원 프로젝트] 01_개발환경 소개(springboot, mysql, jpa, login) by. 코딩레시피 (0) | 2024.09.29 |