JasperReports logo version 7.0.7 Home - Samples - Configuration - Functions - FAQ - API (Javadoc)

Spring Boot Sample

This sample demonstrates running JasperReports Library in a Spring Boot 4 application. A REST controller compiles and serves several report templates as PDF, accessible through a browser.

Prerequisites

Building and Running

First, build the JasperReports Library from the project root:

mvn clean install -Dmaven.buildNumber.doCheck=false

Then start the Spring Boot application:

cd demo/samples/springboot
mvn clean compile spring-boot:run

Open http://localhost:8080/ to see the list of available reports. Each report link returns the rendered PDF at /rest/pdf/{reportName}.

Reports

The sample includes reports copied from other demo samples:

Configuration

The jasperreports.properties file sets image DPI to 150 and enables the eye.candy.sixties chart theme (provided by the jasperreports-chart-themes extension).




© 2001- Cloud Software Group, Inc. www.jaspersoft.com