본문 바로가기
#9-2 / Thymeleaf 부가사용 방법 (with , T, formatInteger.. ) 👀 th:with   [[data2]] th:with jstl set 형태와 동일마크업 태그 기준으로 with 작성한 곳 내부에만 범위가 설정됨  [[${n}]] with에서 셋팅된 가상의 변수를 each,if 모두 활용이 가능함   ${T(java.lang.Math).max(a,b)} : a,b중 최대값을 가져올 때 사용${T(java.lang.Math).min(a,b)} : a,b중 최소값을 가져올 때 사용=> 두가지 값 비교만 가능 T type을 설정시 사용 (라이브러리 class를 호출 할때 사용)ex) T(kr.co.sen.web).사용된 class명    =>  요런식으로 핸들링 가능    👀 format 형태구조  .. 2024. 8. 27.
#9-1 / JPA 5 - 회원가입 list paging Apache Commons FileUpload » 1.5 Apache Commons Net 3.6com.squareup.okhttp3  얜 버전 빼고=> pom.xml에 추가  🤷‍♂️❓ paging 반복분 사용시int ea=10;m.addAttribute("ea",ea); [[${num}]]=> 잘돌아감 1=> 이건 안돌아감#numbers숫자 포맷을 적용할때 사용함소수점,정수,통화형식,퍼센트 sequence 숫자 범위를 설정  (시작값,종료값,step) ※ Controller에서 숫자값을 addAttribute 로 설정하더라도  , th:each로는 반복문이 작동하지 X    => th:each 근본 반복문은 배열(클래스,원시) 기준          단, #numbers.sequence를 이요.. 2024. 8. 27.
#8-4 / JPA 4 - 회원가입 search 👀 search  - html 이름 아이디 연락처    - Controller@GetMapping("/checkout/member_list")public String member_list(Model m, @RequestParam(value="",required = false) String search_id, @RequestParam(value="",required = false) String search_part) { List all=null; //DB에 있는 전체 데이터를 DAO를 이용하여 thymeleaf로 값 전달 if(search_part==null&&searc.. 2024. 8. 27.
#8-2 / JPA 4 - 회원가입 modify , update 👀 modify 페이지 출력 - selectOne - controller@Autowiredweb_repo wr; //interface load//회원 정보 수정 JPA@PostMapping("/checkout/member_modify")public String member_modify(int uidx, Model m, ServletResponse res) { res.setContentType("text/html;charset=utf-8"); try { List oneData= wr.findByUidx(uidx); if(oneData.get(0)==null) { System.out.println("해당 데이터가 없습니다."); }else.. 2024. 8. 23.