一些问题的记录

问题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()。

图1
图2

你可能感兴趣的:(一些问题的记录)