스터디공부8 인프런 워밍업 0기 미니 프로젝트 1단계 완료 미니프로젝트 1단계 프로젝트 설정 dependencies { // Data JPA implementation 'org.springframework.boot:spring-boot-starter-data-jpa' // WEB implementation 'org.springframework.boot:spring-boot-starter-web' // Lombok implementation 'org.projectlombok:lombok' compileOnly 'org.projectlombok:lombok' annotationProcessor 'org.projectlombok:lombok' testAnnotationProcessor 'o.. 2024. 3. 4. 인프런 워밍업 스터디 일곱 번째 과제! (진도표 7일차) 출처 : 자바-스프링부트-서버개발-올인원 문제 1 JpaRepository public interface FruitRepositoryJpa extends JpaRepository { List findAllByName(String name); long countByName(String name); List findAllByPriceGreaterThanEqual(Long price); List findAllByPriceLessThanEqual(Long price); } JpaRepositoryImp @Primary @Repository public class FruitRepositoryJpaImp implements FruitRepositoryInterface { private final FruitRepos.. 2024. 2. 27. 인프런 워밍업 0기 여섯 번째 과제! (진도표 6일차) 문제 1 4일차 과제의 Controller를 Controller/Service/Respsitory로 분리하기 Controller package com.group.libraryapp.controller.homework; import com.group.libraryapp.service.fruit.FruitService; import org.springframework.http.ResponseEntity; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.util.Assert; import org.springframework.web.bind.annotation.*; import java.time.LocalDate; @Re.. 2024. 2. 26. 인프런 워밍업 5일차 과제 package com.group.libraryapp.play; import java.util.Scanner; public class Playground { public static void main(String[] args) { System.out.println("숫자를 입력하세요 : "); Scanner scanner = new Scanner(System.in); // 변수명 수정 int diceRollCount = scanner.nextInt(); // 주사위를 만든다. int maxDiceNumber = 6; DiceRollCounterMachine diceRollCounterMachine = new DiceRollCounterMachine(maxDiceNumber); diceRollCounterM.. 2024. 2. 23. 이전 1 2 다음