action注入如何才能正确使用?
原先上传是用getFile(),现在换成action注入,是改成
public void upload(UploadFile uploadFile) 这样吗?
public void upload(UploadFile uploadFile) {
System.err.println(uploadFile);
// UploadFile uploadFile = getFile();
ApiResult result = mSystemService.upload(uploadFile);
out(result);
}
这种写法,报uploadFile空指针
项目:JFinal