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.
git clone https://github.com/RamonBecker/JasperReportsSpringBoot.git
git clone https://github.com/RamonBecker/JasperReportsSpringBoot.git
or install github https://desktop.github.com/
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
Enter the following commands in the terminal.
sudo apt update
sudo apt install mysql-server
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.
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
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
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
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
- Java
- JPA
- Spring Boot
- Jaspersoft Studio
- Jasper Reports
- 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.
By Ramon Becker 👋🏽 Get in touch!