[Spring] Java Bean vs POJO vs Spring Bean
·
Spring
Java Bean : Classes adhering to 3 constraints : 1 : Have public default (no argument) constructors2 : Allow access to their properties using getter and setter methods3 : Implement java.io.Serializable(Java Bean의 개념은 더 이상 중요하지 않다. EJB을 사용하는 사람이 많지 않기 때문.) POJO : Plain Old Java Object 즉, 자바로 생성하는 순수한 객체( = 모든 Java 객체는 POJO) Spring Bean : Spring이 관리하는 모든 Java 객체- Spring uses IOC Container (Bean Fac..
Spring Container
·
Spring
Spring Container : Manages Spring beans & their lifecycle 1 : Bean Factory : Basic Spring Container (dont create directly) 2 : Application Context : Advanced Spring Container with enterprise-specific features- Easy to use in web applications- Easy internationalization- Easy integration with Spring AOP Which one to use? : Most enterprise applications use Application Context- Recommended for web a..