【文件属性】:
文件名称:jersey-guice-ofy-hello-world:这是使用Jersey&Guice&Objectify的基本示例
文件大小:18KB
文件格式:ZIP
更新时间:2021-05-03 03:59:46
Java
球衣,家伙,你好,单词
这是在Java Appengine应用程序中使用Jersey v2和Guice v3和Objectify v4的基本知识。
步骤1该应用程序在/ api /中公开一个REST api,该api可以创建Hello资源
你好模式是:
{
id: Long,
name: String,
user: User
}
[GET] / hello /用于检索所有实体
[GET] / hello / {id}用于通过ID检索问候实体
/ hello /中的[POST],带有hello正文,以创建新的Hello实体
使用安全性约束并使用UserService来检索用户信息并将其存储在Hello实体中
【文件预览】:
jersey-guice-ofy-hello-world-master
----.gitignore(87B)
----src()
--------main()
--------test()
----LICENSE(1KB)
----pom.xml(6KB)
----README.md(609B)