问题1:Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could
解决方法:@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
问题2:Jasper报表显示一直为空白
原因:传入的list或者其他数据为空!!如果是传入的list数组为空,则不能用new JRBeanCollectionDataSource(listdata),而应该用new net.sf.jasperreports.engine.JREmptyDataSource()。
![](https://img.haomeiwen.com/i15504929/a019fbe830390d59.png)
![](https://img.haomeiwen.com/i15504929/2946791219e767e5.png)
网友评论