为什么service中构造器方法的sysout的内容没显示?
public class TestDIServiceImpl implements TestDIService { private TestDao testDao; //constructor方法注入 public TestDIServiceImpl(TestDao testDao){ super(); this.testDao = testDao; } @Override public void sayHello(String arg) { System.out.println("service构造方法注入sayHello"); arg = arg + ":" + this.hashCode(); testDao.sayHello(arg); }}
结果只显示arg的内容了,不显示System.out.println("service构造方法注入sayHello");中的内容