본문 바로가기
#6-1 / Thymeleaf 외부파일 로드 , layout thymeleaf 외부 파일로드 규칙 templates , webapp 에 있는 파일은 서로 include 불가resource 안에서 모든 것을 핸들링 해야함 🤷‍♂️❓th:fragment영역 처리를 담당하는 thymeleaf 속성th:fragment = "가상의 이름"th:fragment="main(data)" 요렇게 인자값을 넘길 수도 있음 th:replace영역(fragment)을 가져오는 thymeleaf 속성th:replace="~{경로 :: fragment이름}"  th:insertthymelefa 3.x 속성 (== replace)replace는 곧 없어질듯~ ==>  replace는 기존 태그를 삭제 후 로드하는 방식 / insert는 기존태그 삭제 없이 로드하는 방식        ins.. 2024. 8. 21.
#5-2 / thymeleaf로 데이터 출력 2 👀 JSP + thymeleaf  - controller@GetMapping("/datalist2.do")public String datalist2(Model m) { m.addAttribute("view","JSP & JSTL"); return "datalist2"; // 걍 null로 해도 되는듯}   - datalist2.jsp/* */이걸 지워줘야함 ✅ view 파일 속성명을html과 jsp 함께 사용시 상위 속성을 입력해야함! application.properties여기에 spring.thymeleaf.cache=falsespring.thymeleaf.check-template-location=truespring.thymeleaf.enabled=truespring.thymeleaf... 2024. 8. 20.
#5-1 / thymeleaf로 데이터 출력 1 : text , ArrayList , Map , dao, 조건문 , checked thumeleafhtml에 출력 가능jsp,jstl에 출력 가능 ( jsp,jstl 상위 )spring에서는 잘 안씀 ✅ 설치  application.properties 추가#thymeleaf# 템플릿 캐쉬를 비활성 - 소스를 수정시 바로 새로고침이 이루어짐spring.thymeleaf.cache=false # 템플릿 뷰를 이용하여 resources의 디렉토리를 활성화하여 사용함spring.thymeleaf.check-template-location=truespring.thymeleaf.enabled=true# view 경로를 말함spring.thymeleaf.prefix=classpath:/templates/# view 파일 속성명spring.thymeleaf.suffix=.html# view에서 사.. 2024. 8. 20.
#4-2 / Bootstrap - 회원가입 bootstrap example/checkout 가져옴  👀 NICE 인증  보안 👎 실제론 돈주고 라이브러리 다운받아서 같이 사용 - jsp 회원가입 회원가입 샘플 페이지 MEMBERSHIP 고객명 아이디 패스워드 패스워드 확인 연락처 인증 확인 이메일 주소 입력 주소찾기 캐릭터 이미지(Optional) 회원가.. 2024. 8. 19.