use spring as IOC