package cn.edu.tju.service3;
import org.springframework.beans.factory.SmartInitializingSingleton;
import org.springframework.stereotype.Component;
@Component
public class MySmartService implements SmartInitializingSingleton {
@Override
public void afterSingletonsInstantiated() {
System.out.println("this is smart: " + this);
}
}