問題1:Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could?
解決方法:@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
問題2:Jasper報(bào)表顯示一直為空白
原因:傳入的list或者其他數(shù)據(jù)為空?。∪绻莻魅氲膌ist數(shù)組為空,則不能用new JRBeanCollectionDataSource(listdata),而應(yīng)該用new net.sf.jasperreports.engine.JREmptyDataSource()。

圖1

圖2