본문 바로가기

코딩 국비수업들으며 느끼는점

팀프로젝트 구현하기: 프로필 생성하기

  1. user 컨트롤러에 ProfileController 하나 만든다.((@RequestMapping("/profile") 추가)
  2. GetMapping 에 각각 프로필 경로를 적는다. (자기소개면 "/intro")
  3. return 에 "profile/intro" 해준다.
  4. template 하위에 profile 폴더 생성한다.
  5. profile 폴더 안에 intro.html 생성한다. (안에 h1 태그로 자기소개 페이지입니다.)
  6. 서버 실행 후 localhost/intro 주소요청 시 오류가 없으면 성공