SpringBoot MyBatis Project
This project is simple SpringBoot MyBatis Project.
Project is created with:
- https://start.spring.io/
- Springboot 3.0.6
- Java 17
- Maven
- Spring Web
- H2 Database
- MyBatis Framework
- H2 in memory database is used for this project
- DB Console:http://localhost:8080/h2-console/
- JDBC URL: refer application.properties
- User Name: refer application.properties
- Password: refer application.properties
- Sample Data: refer data.sql
- Build the project using maven command:
mvn clean install
- Run the spring-boot-mybatis project locally:
mvn spring-boot:run
- Access the application at: http://localhost:8080/
- Get All Users: http://localhost:8080/rest/user/all
- Insert User: http://localhost:8080/rest/user/insert
- Update User: http://localhost:8080/rest/user/updateUser
- Delete User: http://localhost:8080/rest/user/deleteUser