[size=large]
public class XXService {
@Autowired
DaoImpl DaoImpl;
}
@Autowired注入对象为NULL
[color=red]方法:在所有使用了dao的地方,包括调用它的servcie都要进行@Autowired注入,否则之后的注入就会失败..[/color]
[/size]
public class XXService {
@Autowired
DaoImpl DaoImpl;
}
@Autowired注入对象为NULL
[color=red]方法:在所有使用了dao的地方,包括调用它的servcie都要进行@Autowired注入,否则之后的注入就会失败..[/color]
[/size]