Skip to content

Reporting project developed with Spring Boot, Jasper Reports and MYSQL

Notifications You must be signed in to change notification settings

RamonBecker/JasperReportsSpringBoot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jasper Reports Spring Boot

ℹ️ Information

Reporting project developed with Spring Boot, Jasper Reports and MYSQL. Was developed:

  • Creation of reports with graphics;
  • The creation of sub-reports;
  • Creation of certificates with QRCode;
  • The generation of graphs by grouping via SQL query;
  • Mathematical calculations were developed in the reports, such as: values and averages of employees and their respective salaries.

⚠️ Prerequisite

Java Badge >= 11

Spring Badge

mysql

JPA-hibernate (1)

jasperreports

🔧 Install

git clone https://github.com/RamonBecker/JasperReportsSpringBoot.git

git clone https://github.com/RamonBecker/JasperReportsSpringBoot.git
or install github https://desktop.github.com/ 

Demo

bandicam 2021-12-24 21-01-11-512


Examples of created reports

func13-1 func13-2


func14-1 func14-2

⚙️ Installing Jaspersoft Studio

To view all reports download and install Jaspersoft Studio. The version you should install is 6.15.0 https://sourceforge.net/projects/jasperstudio/files/JaspersoftStudio-6.15.0/

After installing Jaspersoft Studio, import the CursoUdemy project using the option: Projects from Folder or Archive

importacao

Database Schema

diagrama

⚙️ Installing MySQL

Enter the following commands in the terminal.

sudo apt update
sudo apt install mysql-server

Configuring MySQL

For new installations, you will want to run the security script that is included. This changes some of the less secure default options for things like root logins and example users. Enter the command below.

sudo mysql_secure_installation

This will take you through a series of prompts where you can make some changes to the security options of your MySQL installation. The first prompt will ask you if you want to configure the Validate Password Plugin, which can be used to test the strength of your MySQL password. Regardless of your choice, the next prompt will be to set the password for the MySQL root user. Sign in and then confirm a secure password of your choice.

From there, you can press Y and then ENTER to accept the default answers for all subsequent questions. This will remove some anonymous users and the test database, disable remote login for root, and load all of these new rules so that MySQL immediately respects the changes you made.

Testing MySQL

To see if MYSQL is running, type the following command.

systemctl status mysql.service

If MySQL is not running, you can start it with the following command.

sudo systemctl start mysql

Now try to connect your root user to MySQL.

mysql -u root -p

Attention when creating and connecting the database

Check the application.properties file

spring.datasource.url= jdbc:mysql://localhost:3306/jaspercurso?serverTimezone=America/Sao_Paulo
spring.datasource.username=username
spring.datasource.password=password

You must create the database in MYSQL with the name jaspercurso

Download and run the scripts in MYSQL that are on DRIVE

https://drive.google.com/drive/folders/1stylLk15XBLslN9vAJLjL8zQQe1UZ4qN?usp=sharing

Settings for reading the QR Code

If you are on Windows

Open CMD (terminal) and type ipconfig

If you are on Linux

Open the terminal and type ifconfig

Check your machine's IP.

Open the file employees-19-jasper

teste

in a file editor and look for the following line:

"http://192.168.0.104:8080/certificados?cid=" 

Where is 192.168.0.104 change to your IP

⚡ Technologies

  • Java
  • JPA
  • Spring Boot
  • Jaspersoft Studio
  • Jasper Reports

📝 Developed features

  • Listing of employees by their addresses;
  • Listing of employees by their positions;
  • Listing of employees by states;
  • Listing of employees by their ids;
  • Listing of employees by their ages;
  • Generation of graphs through sum grouping, mathematical calculations of employees' salaries.

🧑‍💻 Author

By Ramon Becker 👋🏽 Get in touch!

github linkedin Gmail Badge

Releases

No releases published

Packages

No packages published