함밥 | 220812
git clone 방법
Git -> Clone
master branch protection rule 적용하여 브랜치 보호
[GitHub] Branch Protection Rule 적용해 브랜치 보호하기
Branch를 보호하는 것이 중요한 이유 협업을 할 때 Rule이 없으면 각자 자신의 방식으로 일을 하게 되기 때문에 뒤죽박죽이 된다. 만약 인원이 적다면 별 문제가 되지 않지만, 실무에서는 적게는 3
kotlinworld.com
[leta] branch 생성한 후 checkout
식당 리스트 모듈 구현
스프링 구현 순서
Entity -> Repository -> Dao -> Service -> Controller
모든 식당을 리스트로 받아오는 findAll() 함수 생성.
//우선커밋 후 카테고리별 분류 함수 생성.
카테고리별 분류 함수: findByCategory(String category)
RestaurantRepository에서 @Query 설정
public interface RestaurantRepository extends JpaRepository<Restaurant, Long> {
@Query(value = "select r from Restaurant r where r.category = :category")
public Optional<List<Restaurant>> findByCategory(@Param("category") String category);
}
https://wakestand.tistory.com/668 //Query 작성법 Repository (쿼리 정보 설정) 참고
스프링부트 JPA CRUD 사용방법 정리(MySQL, Gradle)
GitHub - wakeisle9933/jpa-example: JPA 예제 JPA 예제. Contribute to wakeisle9933/jpa-example development by creating an account on GitHub. github.com 해당 글은 위와 같이 세팅을 한 뒤에 작성한 내용..
wakestand.tistory.com