学习博客:https://blog.csdn.net/wlwlwlwl015/article/details/51312853
https://blog.csdn.net/cbjcry/article/details/70154337
pom文件需要添加的标签:
<dependency>
<groupId>net.sf.jasperreports</groupId>
<artifactId>jasperreports</artifactId>
<version>6.2.1</version>
</dependency>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-all</artifactId>
<version>2.4.3</version>
</dependency>
问题:
net.sf.jasperreports.engine.JRRuntimeException: Could not load the following font :
pdfFontName : STSong-Light
pdfEncoding : UniGB-UCS2-H(Chinese Siplified)
解决方式:下载itext-4.2.1.jar包,将其添加到WEB-INF/lib/目录下即可