전체 글 (291) 썸네일형 리스트형 [Hibernate validator] 6. Creating custom constraints 틀린 해석이 있다면 알려주세요 6.1. Creating a simple constraint 많은 방식의 표준 제약 조건이 정의되어있지만, 커스텀해서 사용해야할 경우가 있다. 문서를 보면서 간단한 valid constraint 를 만들어보려고 한다 참고로 간단한 제약조건이라고 되어있는데 엄청 길다 ㅋㅋㅋㅋㅋㅋㅋ To create a custom constraint, the following three steps are required: Create a constraint annotation Implement a validator Define a default error message 예제에서 사용할 클래스는 여기서 licensePlate 에 적용해볼 것이라고 한다 package org.hibernate.v.. [Spring framework Web MVC docs] 1.3.7 ControllerAdvice 틀린 해석이 있다면 알려주세요 @ControllerAdvice 는 @Controller 가 있는 모든 곳에 initbinder, exceptionhandler, modelattribute를 어떻게 작업할지 미리 선언해준다 공통분모 같은?? @Controller 안에 @ExceptionHandler, @InitBinder, @ModelAttribute 를 선언하면 해당 컨트롤러에서만 적용된다 @ControllerAdvice, @RestControllerAdvice 를 사용하면 모든 컨트롤러에 적용이된다. as of 5.3, @ExceptionHandler methods in @ControllerAdvice can be used to handle exceptions from any @Controller or.. [Spring framework Web MVC docs] 1.3.5 DataBinder ~ 1.3.6 Exception 공부할때마다 느끼지만..... 영어를.....잘했다면.... 번역기 안돌리고... 이게 맞게 해석한건가... 걱정하면서...공부를...안할텐데.......... ......또르르...... 아무튼... 오늘 목표는 1.3.7 까지 틀린 해석이 있다면 알려주세요 1.3.5 DataBinder @Controller or @ControllerAdvice 는 WebDataBinder 의 인스턴스를 초기화하는 @InitBinder 를 사용할 수 있다. Bind request parameters (that is, form or query data) to a model object. Convert String-based request values (such as request parameters, path varia.. [Spring framework Web MVC docs] 1.3.4 Model 틀린 해석이 있다면 알려주세요 @ModelAttribute 사용 https://docs.spring.io/spring-framework/docs/current/reference/html/web.html#mvc-ann-modelattrib-method-args Web on Servlet Stack Spring Web MVC is the original web framework built on the Servlet API and has been included in the Spring Framework from the very beginning. The formal name, "Spring Web MVC," comes from the name of its source module (spring-webmvc).. [Hibernate orm] 2.7. Associations 틀린 해석이 있다면 알려주세요 링크 : https://docs.jboss.org/hibernate/orm/5.2/userguide/html_single/Hibernate_User_Guide.html#associations Hibernate ORM 5.2.18.Final User Guide Fetching, essentially, is the process of grabbing data from the database and making it available to the application. Tuning how an application does fetching is one of the biggest factors in determining how an application will perform. F.. [Spring framework Web MVC docs] 1.3.3 Handler Methods 틀린 해석이 있다면 알려주세요 https://docs.spring.io/spring-framework/docs/current/reference/html/web.html#mvc-ann-methods Web on Servlet Stack Spring Web MVC is the original web framework built on the Servlet API and has been included in the Spring Framework from the very beginning. The formal name, "Spring Web MVC," comes from the name of its source module (spring-webmvc), but it is more commonl docs.sprin.. [Thymeleaf docs] 4.4 Link URLs 틀린 해석이 있다면 알려주세요 공식문서를 제일 1순위로 공부해야겠다고 짚어주셨던 부분 중 하나가 바로 이것이다 타임리프 href 사용 할때 혹시 th:href="@{|http://localhost:8080/test/order/details(orderId=${o.id})|}" 이렇게 사용해본 적 있는 사람?? 뭐가 잘못된건데 라고 한다면 바로 이 "|" 이걸 사용한 것이다 공식문서에 따르면 th:href 를 사용할 때 이런 방식을 사용하라고 알려주고 있다 view view view 나만 그렇다고 할 수 없는게 나도 블로그 포스팅 복붙하다가 쓰게된 방법이기 때문이다. | | [Spring framework Web MVC docs] 1.3.2 Request Mapping 틀린 해석이 있다면 알려주세요 spring document 공식문서 보고 공부하는 중 https://docs.spring.io/spring-framework/docs/current/reference/html/web.html#mvc-ann-requestmapping @Controller @RestController 기본 클래스를 확장하거나 특정 인터페이스 구현 필요 X @RestController 는 메타 주석이 추가되어 렌더링할 수 있도록 함 -> @Controller, @ResponseBody 등 1.3.2. Request Mapping @RequestMapping 주석을 이용하여 컨트롤러 매핑 가능 @RestController @RequestMapping("/persons") class PersonC.. 이전 1 ··· 30 31 32 33 34 35 36 37 다음