- 在项目根目录下执行
./env-setup.sh
执行完输入密码:thoughtworks
-
在项目根目录下执行
./gradlew test测试所有测试./gradlew jettyrun运行项目 -
在浏览器中访问 http://localhost:8080/jersey-user-demo/user/email/{email} 注:{email}是数据库已经写入的email,例如访问:http://localhost:8080/jersey-user-demo/user/email/565678150@qq.com 就可以返回这个用户的信息 如果访问一个数据库中不存在的email,例如访问http://localhost:8080/jersey-user-demo/user/email/123456789@qq.com 返回404,用户不存在
-
在浏览器中访问 http://localhost:8080/jersey-user-demo/user/mobilePhone/{mobilePhone} 注:{mobilePhone}是数据库已经写入的mobilePhone,可以通过mobilePhone找到用户