본문 바로가기

thymeleaf8

타임리프 *{}와 ${}의 차이점, ${?} 안전연산자 타임리프를 사용하여 작성된 html 코드 중 이런 코드가 있는데 이 코드는 어떻게 그려지는 코드야? 이 코드에 대해 설명해줘 이 코드는 Thymeleaf에서 사용하는 hidden input 태그입니다. 이 태그는 사용자에게 보이지 않지만, 폼을 제출할 때 함께 전송되는 데이터를 저장하는 데 사용됩니다. th:field 속성은 폼 객체의 필드와 input 태그의 값을 연결합니다. 이 경우, deptCd 필드의 값이 input 태그의 값으로 설정됩니다 이 코드는 Thymeleaf에서 사용하는 text input 태그입니다. 이 태그는 사용자가 텍스트를 입력할 수 있는 입력란을 생성합니다. th:field 속성은 위와 마찬가지로 폼 객체의 필드와 input 태그의 값을 연결합니다. 이 경우, deptNm 필드.. 2023. 8. 3.
학원 수업 64일차 221121 9-10 프로젝트명 : springWebSecurity04 https://www.thymeleaf.org/ecosystem.html#thymeleaf-spring-security https://github.com/thymeleaf/thymeleaf-extras-springsecurity#namespace Thymeleaf-based equivalent to the Spring Security JSP tag library. Adds new expression utility objects like #authentication and #authorization for integrating Spring Security capabilities into Thymeleaf expressions. Adds new at.. 2023. 4. 27.
학원 수업 59일차 221114 9-10 https://www.thymeleaf.org/doc/articles/springsecurity.html This content is only shown to authenticated users. This content is only shown to administrators. This content is only shown to users. https://docs.spring.io/spring-security/reference/servlet/authorization/authorize-http-requests.html 스프링 시큐리티 / 서블릿 애플리케이션 / 권한 부여 / HTTP 요청 승인 스프링 시큐리티 / 서블릿 애플리케이션 / 권한 부여 / Expression-Based Access C.. 2023. 4. 27.
Pagenation 현재 해당하는 페이지에만 select 클래스 적용 사용 언어 : Java 8 프레임워크 : Spring Boot, Thymeleaf, JPA >> JPA를 사용하여 검색, 페이징 기능을 동시에 구현하는 프로젝트 기능은 구현을 다 해놨는데 마지막 css 적용에서 브레이크가 걸렸다 현재 페이지에 해당하는 숫자에만 select 클래스를 줘서 css를 적용하고 싶어 자바스크립트로 만드려고 고민고민을 하다가... 안돼서... 이 기회에 챗gpt 한 번 써보자! 하고 결심을 하게 됐다 (아주 좋은 기회였다!) 페이지네이션으로 며칠 고민하고 코드를 계속 수정하다보니 정신줄을 놔서 이런 실수를...!! css 수정하고 !important 붙여주었음 챗gpt 고마워 이제 본격적인 질문 >> 아 .. 2023. 4. 25.
학원 수업 49일차 221031 10-11 쿼리스트링 파라미터? @GetMapping("/customers/{division}/{page}") public String customers(Model model) { service.list(model); return "customer/faq/list"; } 스프링부트 어노테이션 / @PathVariable https://ocblog.tistory.com/46 (/springWeb05-design/src/main/java/com/green/nowon/service/impl/FaqServiceProcess.java) RowBounds? 11-12 비동기 구현 -> jQuery ajax jQuery AJAX Methods https://www.w3schools.com/jquery/jquery_r.. 2022. 12. 13.
학원 수업 47일차 221027 9-11 프로젝트명 : /springWeb05-design (FaqDTO.java)(/springWeb05-design/src/main/java/com/green/nowon/domain/dto/faq/FaqDTO.java) 빌더패턴 특징? https://mangkyu.tistory.com/163 클래스 내부에 이너클래스를 만들어줌 (/springWeb05-design/src/main/java/com/green/nowon/controller/CustomerController.java) 따라치기는 하는데 이게 지금 뭐하는 건지 왜 하는건지 이해가 안됨 (/springWeb05-design/src/test/java/com/green/nowon/SpringWeb05DesignApplicationTests.jav.. 2022. 12. 9.
학원 수업 44일차 221024 9-10 11월 둘째주부터 마리아DB AWS 배울 예정 리눅스마스터 2급 이상으로 따자 로그인 페이지 만들기 signin.html - layout01.html signup.html - layout02.html 연결해서 쓸 예정 Fragments https://www.thymeleaf.org/doc/tutorials/3.0/usingthymeleaf.html#fragments The most common use is for fragment insertion using th:insert or th:replace (more on these in a later section): 타임리프로 header를 가져올 땐 가 아닌 블록태그를 써야 헤더 안에 헤더가 들어가는 일이 안생김 10-11 (signin.html).. 2022. 11. 28.
학원 수업 42일차 221020 10-11 HTML Tag https://www.w3schools.com/tags/tag_a.asp 11-12 8 Template Layout Defining and referencing fragments https://www.thymeleaf.org/doc/tutorials/3.0/usingthymeleaf.html#defining-and-referencing-fragments th:block 태그 11.4. Synthetic th:block tag https://www.thymeleaf.org/doc/tutorials/3.0/usingthymeleaf.html#synthetic-thblock-tag 태그를 넣어야하는데 뭔가 마땅치 않으면 12-1 viewresolver spring boot https.. 2022. 11. 28.