본문 바로가기

Dev/Spring7

스프링부트(SpringBoot) Multipart 파일 업로드 https://private.tistory.com/59 2021. 6. 22.
[Spring] BeanUtils 관련 https://gompangs.tistory.com/entry/JAVASpring-BeanUtils-%EA%B4%80%EB%A0%A8 [JAVA/Spring] BeanUtils 관련 Spring을 사용하다가, 은근히 종종 Class간 property를 복사해야 할 경우가 있다. 예를 들어, 위와 같은 클래스가 2개가 있다고 치자. 이 때 DB에서 조회한 Person1과 Person2가 있는데, 종종 어떠한 이유로 gompangs.tistory.com https://tyboss.tistory.com/entry/ApacheCommons-BeanUtils-%EC%82%AC%EC%9A%A9%ED%95%98%EA%B8%B0-Map-Bean [ApacheCommons] BeanUtils 사용하기 (Map Bean).. 2021. 6. 22.
[Spring] @Mapper/@Repository 이해하기 https://ddacker.tistory.com/13 [SI에서 살아남기] 내맘대로 Mapper,Repostiory 역할 및 간단한 예시 백엔드 비즈니스 로직 전체 구조 Model: controller, Service, Mapper/Repository 와의 상호 작용 RestController : Service와 상호작용 Service: Mapper, Reopstiory와 상호작용 Mapper/Reopstiory: SqlSesion 및.. ddacker.tistory.com Mapper / Repository Mybatis를 사용하여 데이터를 처리하는 부분입니다. (+xml 사용) Mapper 어노테이션을 사용하여 xml에 namespace와 매핑시킴 Repostiory 어노테이션을 사용하여 메서드의 .. 2021. 6. 7.
[Spring] @RequestMapping 이해하기 @RequestMapping은 DefaultAnnotationHandlerMapping에서 컨트롤러를 선택할 때 대표적으로 사용하는 애노테이션이다. url당 하나의 컨트롤러에 매핑되던 다른 핸들러 매핑과 달리 메서드 단위까지 세분화하여 적용할 수 있으며, url 뿐 아니라 파라미터, 헤더 등 더욱 넓은 범위를 적용할 수 있다. https://joont92.github.io/spring/@RequestMapping/ [spring] @RequestMapping @RequestMapping은 DefaultAnnotationHandlerMapping에서 컨트롤러를 선택할 때 대표적으로 사용하는 애노테이션이다. url당 하나의 컨트롤러에 매핑되던 다른 핸들러 매핑과 달리 메서드 단위까지 세분화하 joont92... 2021. 6. 7.