SpringProyectDemo6
Autor: Daniel Pérez Pérez
Fecha: 16/10/2022
Demonstration of data access with JDBC by implementing architecture in 4 layers (interface, business, data and connection).
Note: The org.springframework. So to execute this project you must do it with Apache Tomcat 9 since Apache Tomcat 10 implements the new Jakartaee structure.
If you want to create web applications with Spring about Apache Tomcat 10 it is better that you use Spring Boot. (Locate my repositories on web applications with Spring Boot 3).
Development Environment: Eclipse, Version: 2022-03 (4.23.0) Server: Apache Tomcat, Version: 9 JDK: OpenJDK, Version: 17.1 Project Manager: Maven, Version: 3.8.0 Maven artifact id
IMPORTANT: You must load in your MySQL or Mariadb database the database provided in the Data-Stockdb.sql file. In addition, you must adapt the connection parameters in the MySQLConnection class.
1st. Copy the Board of Directors with the Code in the Board of Directors of your Eclipse Work Space. 2nd. From eclipse, import the project by clicking on File -> Open Projects from File System 3rd. In Import Source, clicking on the "Directory ..." button select the folder that contains the project. 4th. Click on Finish 5th. It is recommended to make a maven update (right click on the MAVEN -> Update Project ...