문서를 반환하는게 정상
//@ResponseBody->써주지않으면 문서를 반환,써주면 리턴값의 문자를 반환
@PathVariable ->("reg/{uid}/{id}")경로를 불러오는거
@RequestParam ㅡ>html에 있는 name에 있는 파일을 불러오는것
이제는 제스퍼를 이용해서 문서를 만들것이다
Tiles 라이브러리 설정하기
앞으로 달라지는 부분만 만들어
반복되는것ㅡ> 레이아웃
백엔드는 이제 업댓이 x ㅡ>완성
The Apache Attic - Apache Attic
The Apache Attic was created in November 2008 to provide process and solutions to make it clear when an Apache project has reached its end of life. Specifically to be: "responsible for the oversight of projects which otherwise would not have oversight; and
attic.apache.org
안되면 maven updata 또는 서버재시작해보기
Tiles
화장실에 보면 타일이 있는데 그 타일을 붙인다고 생각
하나의 패턴으로 지시서를 만들 수 있다.
지시서를 만들기전에 먼저 찢어 놔야함->페이지를 먼저 찢음 ->지시서 만들기
지시서 사용법 사이트
http://tiles.apache.org/framework/tutorial/basic/concepts.html
Apache Tiles - Framework - Tiles Concepts
Tiles concepts Tiles is an implementation of the Composite View pattern. Tiles adds to this pattern its own concepts to make the pattern concrete. The implementation of Tiles around the Composite View pattern consists of the Template, Attribute and Definit
tiles.apache.org
Apache Tiles - Framework - Tiles Concepts
Tiles concepts Tiles is an implementation of the Composite View pattern. Tiles adds to this pattern its own concepts to make the pattern concrete. The implementation of Tiles around the Composite View pattern consists of the Template, Attribute and Definit
tiles.apache.org
네모칸에 있는경로는 잘 확인해서 정확하게 써주기
이부분때문에 오류 날수도 있다.
bean >객체를 의미
@Componet >구성요소 : 스프링 어플리케이션을 구성하는 객체들
Bean Container(콩자루, 콩보따리) : = IoC Container
6번째줄 > 콩보따리에 담겨지는 놈
▶서스스콩, 레파지토리 콩..등등 콩의 능력이 있다..
@Bean
▶콩을생성하기 위한 코드가 됌
▶함수명이 변수명이된다(함수명=변수명)
▶행위명이 없다.
▶누군가가 호출해서 사용x
▶메소드를 반환하는것을 담음
▶호출한 결과를 메모리에 올려줌
'수업정리 > Spring' 카테고리의 다른 글
[05/31]메이븐 설치하기 (0) | 2021.05.31 |
---|---|
[05.31] 스프링 들어가기 (0) | 2021.05.31 |