簡體   English   中英

appengine-web.xml不包含 <threadsafe> 元件

[英]appengine-web.xml does not contain a <threadsafe> element

在App Engine Java應用程序上工作時,出現此主題錯誤。

我看過類似的問題,說

<threadsafe>true</threadsafe>

元素應添加到appengine-web.xml中,但我的appengine-web.xml文件是基於app.yaml自動生成的, 此處的說明未提供任何幫助...

我認為可以使用同一頁面上的“自定義XML輸出”指令來實現,但是他們似乎缺少有關如何實際執行此操作的部分。

'threadsafe'選項將需要出現在與'sessions-enabled'選項相似的位置。 我建議在“運行時”行之后嘗試ap​​p.yaml中的以下附加行:

threadsafe: true

如您所說,它沒有記錄在案,但是'sessions_enabled'對應於'sessions-enabled',因此它可能起作用。 (“功能!” ;-)

一個最小樣品的AppEngine-web.xml文件看起來像這樣的發現, 在這里

<?xml version="1.0" encoding="utf-8"?>
<appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
<application>_your_app_id_</application>
<version>1</version>
<threadsafe>true</threadsafe>
</appengine-web-app>

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM