Skip to content

zaypen-community-sharing/pos-api-spring-boot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pos-api

此代码为 TDD与重构Web MVC / Restful 的随堂练习。

业务说明参见 https://github.com/XLuoChen/pos-page/blob/master/README.md

请使用 git 将代码克隆后,实现缺失的部分代码,最终通过测试。

依赖

克隆代码

git clone https://github.com/zaypen-community-sharing/pos-api.git

完成代码

下述两个方法需要被完成

  • com/thoughtworks/course/pos/service/OrderService.java 的 getDiscountPrice 方法
  • com/thoughtworks/course/pos/service/OrderController.java 的 getOrders 方法

启动 Spring Boot 程序

./gradlew bootRun # macOS/Linux
gradlew.bat test # Windows

访问 pos-page 页面

http://localhost:8080

执行测试

macOS/Linux

./gradlew test

Windows

gradlew.bat test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published