일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
- 그리디
- 스프링 핵심 기능
- jpa
- 자바
- pointcut
- Proxy
- java
- Exception
- db
- JPQL
- 스프링 핵심 원리
- SpringBoot
- JDBC
- Thymeleaf
- 인프런
- Servlet
- http
- 알고리즘
- 스프링
- 백준
- transaction
- Greedy
- spring
- kotlin
- AOP
- Android
- QueryDSL
- Spring Boot
- 김영한
- springdatajpa
- Today
- Total
목록갓영한 (3)
개발자되기 프로젝트
야아아압 1. AppConfig를 스프링 기반으로 전환! @Configutarion : 설정 정보에 적용 @Bean : 스프링 컨테이너에 bean으로 등록됨. 스프링 컨테이너에 등록 될 때 각 메서드의 이름으로 등록된다. @Configuration public class AppConfig { @Bean public MemberService memberService(){ return new MemberServiceImpl(memberRepository()); } @Bean public OrderService orderService(){ return new OrderServiceImpl(memberRepository(), discountPolicy()); } @Bean public MemoryMemberRe..
1. DiscountPolicy Interface DiscountPolicy의 역할 : Member, 가격을 받아 할인 금액을 return 추후 변경이 용이하게 interface생성 후 구현체 생성. public interface DiscountPolicy { /** * @return 할인 대상 금액 */ int discount(Member member, int price); } 2. FixDiscountPolicy Class DiscountPolicy의 구현체 Override하여 method 구현 member, price를 받아 member 등급에 해당하는 할인금액 return. public class FixDiscountPolicy implements DiscountPolicy{ private int..
요구사항 및 클래스 다이어 그램은 이전 글 참고 비즈니스 요구사항 & 설계 스프링 부트는 환경설정을 위해서만 사용. 스프링 없이 순수 자바로만 진행! 회원 회원을 가입하고 조회할 수 있다. 회원은 일반과 VIP 두 가지 등급이 있다. 회원 데이터는 자체 DB를 구축할 수 bsh-developer.tistory.com 1. Member class public class Member { private Long id; private String name; private Grade grade; public Member(Long id, String name, Grade grade) { this.id = id; this.name = name; this.grade = grade; } public Long getId(..