Я недавно изменил масштабирование по умолчанию на ручное масштабирование в моем локальном приложении GAE.Я могу получить ответ по пути /api/*
, но мой файл приветствия больше не работает.
Я получаю
Проблема с доступом /.Причина:
Запрещено
, и при запуске сервера оно говорит:
com.google.appengine.tools.development.jetty9.LocalResourceFileServlet doGet
ВНИМАНИЕ: Файл не найден для: / _ah / start
до этого все работало хорошо, вот мои appengine-web.xml
<?xml version="1.0" encoding="utf-8"?>
<appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
<version>1.0</version>
<manual-scaling>
<instances>1</instances>
</manual-scaling>
<instance-class>B1</instance-class>
<threadsafe>true</threadsafe>
<sessions-enabled>true</sessions-enabled>
<runtime>java8</runtime>
<static-files>
<include path="/**.html"></include>
</static-files>
<resource-files>
<include path="/**.json" />
</resource-files>
</appengine-web-app>
и мои web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" version="3.1">
<filter>
<filter-name>connexionFilter</filter-name>
<filter-class>slFilters.connexionFilter</filter-class>
</filter>
<filter>
<filter-name>restrictFilter</filter-name>
<filter-class>slFilters.restrictFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>connexionFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>restrictFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<session-config>
<cookie-config>
<http-only>true</http-only>
</cookie-config>
</session-config>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
</welcome-file-list>
</web-app>
* index.html
- это простой html-файл hello world, который должен отображаться при доступе к localhost:8080
. Любая помощь очень ценится