2020-12-12
  • spring
  • jpa
  • Whiteship Spring JPA, Custom Repository

    기본으로 제공되는 쿼리 메소드로 해결이 되지 않는 경우,

    • 직접 구현하거나
    • 기본으로 제공되는 기능을 덮어 쓸 수도 있다.
    • Repository class 에 JpaRepository 를 상속받고 추가로 직접 구현한 implementation class 를 상속받는 방식.
    • implementation class 에 기본적인 naming convention 이 존재한다. 기본 postfix Impl (ex: 내가만든클래스명Imple)
    • 기본 naming convention 은 @EnableJpaRepositories(repositoryImplementationPostfix = "PostfixWhatIWant") 로 변경가능

    2020-11-26
  • web
  • URL encoding 이 뭐지

    URL 에는 공백과 같은 특수문자들이 허용되지 않는다. 따라서 특수문자를 URL 에 파라미터로 담고 싶다면, 인코딩 해야한다. RFC 3986section 2.2 Reserved Characters 을 확인해보자.