View Code? Open in Web Editor
NEW
This project forked from recruiting-system/java_persistence_practice_mybatis_crud-2019-8-29-5-56-46-603
java_persistence_practice_mybatis_crud-2019-8-29-5-56-46-603's Introduction
- please forked this repo for practice
- use MyBatis to implement follow APIs
METHOD |
ENDPOINT |
USAGE |
GET |
/employees |
fetch employee list |
GET |
/employees/:id |
fetch one employee |
POST |
/employees |
create a new employee |
PUT |
/employees/:id |
update a specific employee |
DELETE |
/employees/:id |
delete a specific employee |
- submit your git repo url to field
answer
- create
Entity
to present your data structure
- create
Repository
for MyBatis integration
- create
Mapper
under resources package
- write sql statements
- use
Repository
for your business to access to database
schema.sql
will be loaded and init database when application is starting
- navigate to web console
http://localhost:8080/h2-console
- put
jdbc:h2:mem:tws_persistence_db
in JDBC URL
field
java_persistence_practice_mybatis_crud-2019-8-29-5-56-46-603's People
Contributors
Watchers