작성
·
336
1
package hello.core;
import hello.core.member.Grade;
import hello.core.member.Member;
import hello.core.member.MemberService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
public class MemberApp {
public static void main(String[] args) {
//AppConfig appConfig = new AppConfig();
//MemberService memberService = appConfig.memberService();
ApplicationContext applicationContext = new AnnotationConfigApplicationContext(AppConfig.class);
MemberService memberService = applicationContext.getBean("memberService", MemberService.class);
Member member = new Member(1L, "memberA", Grade.VIP);
memberService.join(member);
Member findMember = memberService.findMember(member.getId());
System.out.println("new member = " + member);
System.out.println("find Member = " + findMember);
}
}
강의 05:10에 의하면 로그가 출력되어야 하는데, 저는 실행 결과는 정상적으로 출력되지만 로그가 출력되지 않습니다. 어떤 차이인가요?