java – Spring Boot 2 JasperReportsMultiFormatView

我从spring boot 1.5迁移到2.0并使用了jasper报告.迁移有一个问题是无法解析导入org.springframework.web.servlet.view.jasperreports.我的代码是

import org.springframework.web.servlet.view.jasperreports.JasperReportsMultiFormatView;

我可以看看java包是如何更改的吗?要解决.

最佳答案
Spring Boot 2.0使用Spring Framework 5.0,删除了对JasperReports的支持.包org.springframework.web.servlet.view.jasperreports不再可用.

按照Upgrading to Spring Framework 5.x

The Spring Framework no longer supports: Portlet, Velocity, JasperReports, XMLBeans, JDO, Guava (replaced by the Caffeine support). If those are critical to your project, you should stay on Spring Framework 4.3.x (supported until 2020). Alternatively, you may create custom adapter classes in your own project (possibly derived from Spring Framework 4.x).

转载注明原文:java – Spring Boot 2 JasperReportsMultiFormatView - 代码日志