81,094
社区成员
发帖
与我相关
我的任务
分享
public class Tggg implements ServletContextListener{
@Autowired
public UserOperation userOperation;
public Tggg() {
System.out.println(userOperation); //null
}
@Override
public void contextDestroyed(ServletContextEvent arg0) {
// TODO Auto-generated method stub
}
@Override
public void contextInitialized(ServletContextEvent arg0) {
// TODO Auto-generated method stub
System.out.println(userOperation); //null
}
}