sách gpt4 ai đã đi

android - 如何在 android studio 中将多个 servlet(Google 端点)添加到 web.xml?

In lại Tác giả: Space Dog Thời gian cập nhật: 2023-10-29 15:46:11 25 4
mua khóa gpt4 Nike

我向我的 android studio google 端点添加了另一个端点,但我无法使其工作。有人知道如何让它工作吗?这是我的 web.xml:




SystemServiceServlet
com.google.api.server.spi.SystemServiceServlet

services
com.example.mymodule.TestEndpoint.MyEndpoint




TestServeletas
com.example.mymodule.TestEndpoint.OuniKiousEndpoint

services
com.example.mymodule.TestEndpoint.OuniKiousEndpoint



TestServeletas
/_ah/oki/*



SystemServiceServlet
/_ah/spi/*



index.html


1 Câu trả lời

奇怪的是,@iniro 的解决方案对我不起作用,即使它是 gradle plugin's page 上的文档.

对我有用的很简单 editing the web.xml for multi class APIs , 使用逗号分隔的端点:

   
SystemServiceServlet
com.google.api.server.spi.SystemServiceServlet

services
com.mybackend.MyEndpoint1, com.mybackend.MyEndpoint2


//End of the web.xml file

关于android - 如何在 android studio 中将多个 servlet(Google 端点)添加到 web.xml?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24727522/

25 4 0
Bài viết được đề xuất: android - 口味与图书馆?
Bài viết được đề xuất: c - 返回什么;意思?
Bài viết được đề xuất: Đường viền Div không hiển thị - Stack Overflow
Bài viết được đề xuất: html - 居中整个 block 引用
Giấy chứng nhận ICP Bắc Kinh số 000000
Hợp tác quảng cáo: 1813099741@qq.com 6ren.com