restful apis for shop-native, shop-ui.
- Java8 and above
- MySQL 5.7.2 and above (support multiple triggers features)
- Tomcat (version unknown, 8.5 for me)
- Maven (intellij idea build-in it)
- New project from version control: Github https://github.com/HerbLuo/shop-api.git.
- create a new database and run the sql file in
/database/shop(latest).sql
(all the file is the full version). - In
/src/main/resources/db.example.properties
, modify the db user information to yourself's (and rename todb.properties
, not needed) - Add a new run/debug config for tomcat.
- Run it.
- goto
http://localhost:8080/item/?itemIds=1&itemIds=2&itemIds=5
, - if success, server will return the json array as follows
[{
"id": 1,
"name": "milk",
"price": 100,
"picLinksJson": "",
"itemSellingInfo": {},
"shop": {}
}]