Autowired 注入后怎么运行构造方法
資深大佬 : bushiren 6
`@Autowired private Test_bbs test;
@RequestMapping("/test") public void test( ) { 怎么运行 Test_bbs 的构造方法啊; }`
@Service public class Test_bbs{ public Test_bbs(){ System.out.println(“运行到我了 “); } }
大佬有話說 (16)