Replies: 1 comment 1 reply
-
|
열심히 정리하고 계시군요 !!! 굳입니다.. ㅎㅎ 혜정님 제가 디스커션 제목 좀 통일하느라 제목만 편집했습니다 .. ! (갑자기 바꾸ㅣ신거 보고 놀라실까봐..ㅎ.ㅎ) 내일 봬요 -! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
메인 화면
templates/home.html파일 생성함스프링 컨테이너는 요청이 들어오면 우선적으로컨트롤러를 스캔해서 해당 url이 있는지 보기 때문에 home.html로 이동하는 게 우선 순위가 된다.등록 기능
getter와setter가 반드시 존재해야 한다.컨트롤러와 html 파일을 살펴보면 html의 form 태그에서 지정된 경로로
postMapping된 것을 확인할 수 있다.조회 기능
each로 반복문을 돌아 member.id와 member.name을 가져온다. 이때 Member가 반드시getter를 갖고 있어야 값을 가져올 수 있다.회원 등록 및 조회 기능 구현

현재는 가상 메모리에 데이터를 저장하고 있기 때문에 서버를 내리면 해당 데이터들은 사라진다.
Beta Was this translation helpful? Give feedback.
All reactions