我正在使用SpringBoot,我正在尝试使用Jasper Report 6.4.3生成报告,但在控制台上不断收到此警告:
WARN 25847 --- [tp1694467519-34] n.s.j.engine.export.PdfGlyphRenderer : Unpatched iText found, cannot use glyph rendering
Run Code Online (Sandbox Code Playgroud)
我无法生成报告.有人可以帮我解决这个问题吗?
我正在尝试创建一个 JSON 文件,但在尝试使用 ObjectMapper 类时遇到了问题。继承人我的班级代码:
import java.math.BigDecimal;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import desafiodimensiva.entities.Desafio2;
@RestController
public class Desafio2Controller {
@RequestMapping(value = "/teste")
public String index() {
return "Greetings from Spring Boot!";
}
@RequestMapping("/desafio2")
public Desafio2 novoDesafio2() {
ObjectMapper mapper = new ObjectMapper();
Desafio2 pessoa = new Desafio2();
BigDecimal valorFinanceiroPessoa = new BigDecimal("0.00");
pessoa.setNomePessoa("----------- ");
pessoa.setIdPessoa("0000");
pessoa.setValorFinanceiro(valorFinanceiroPessoa);
return pessoa;
}
}
Run Code Online (Sandbox Code Playgroud)
还有我的 pom.xml :
`<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.desafio.dimensiva</groupId>
<artifactId>desafiodimensiva</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>war</packaging>
<name>Desafio Dimensiva</name>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.1.0.BUILD-SNAPSHOT</version>
</parent>
<properties> …Run Code Online (Sandbox Code Playgroud)