#1. 프로젝트 생성
#2. 패키지 생성
-
Structure By Layer : controller, service, repository, dto, entity
-
We recommend that you follow Java’s recommended package naming conventions and use a reversed domain name
-
The use of the “default package” is generally discouraged, and should be avoided.
-
We generally recommend that you locate your main application class in a root package above other classes.
-
참고
#3. Controller
- 사용자의 입력이 최초로 받아지는 곳
- @RestController vs @Controller 1. restController 타입의 빈으로 등록을 한다는 뜻 2. controller + response body 추가