如何在spring mvc中的excelBuilder类中自动服务

时间:2016-12-28 13:33:25

标签: java spring spring-mvc

public class ExcelBuilder extends AbstractExcelView {

        @Autowired
        EkamtayinService ekamtayinService;//ekamtayin service is null

        @Override
        protected void buildExcelDocument(Map<String, Object> model, HSSFWorkbook workbook, HttpServletRequest request,
                HttpServletResponse response) throws Exception {
          //...
        }
 }

0 个答案:

没有答案