一些问题的记录

2019-05-13  本文已影响0人  高举按下

问题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
上一篇 下一篇

猜你喜欢

热点阅读