问题描述
我是Java新手,我正尝试。
问题
我的问题似乎是我的 index.html
文件不存在于我的Java文件结构中。因此,我不能在我的 firebase.json
文件中指向它。
问题
- 我不了解如何托管Java Web应用程序?
- code> index.html 文件(显然,Firebase要求)?
- 如何成功托管我的Java Web b
Firebase托管设置说明:
b $ b - What am I not understanding about how to host a Java web app?
- Do java web apps have an
index.html
file when they are deployed (which, apparently, Firebase requires)? - What can I do to successfully host my Java web app?
我的错误信息:
当我按照托管指令浏览 https:// my-example- firebase.firebaseio.com /
我收到以下错误讯息。
我的firebase.json
{
firebase:my-example-firebase,
public:。,
ignore:[
firebase.json,
** /。*,
** / node_modules / **
}
正如您所看到的,我的 firebase.json
code> root 目录是我的 public
目录。但是,它不包含 index.html
文件。因此,这是我认为我缺少Java Web应用程序和文件结构的结构。有没有 index.html
文件。
我的文件结构
(如Eclipse搭建的脚本)(部分)看起来像下面这样:
root
部署描述符:myproject
JAX-WS Web服务
Java资源
Javascript资源
编译
src
com.example .myproject
MyprojectUI.java
MyprojectUI
test
libraries
WebContent
ivy.xml
ivysettings.xml
我查看了所有内容,没有 index.html
文件。我想知道如果我需要也许编译成HTML和Javascript的东西?然后提供该文件?我迷茫和困惑。请有人帮忙。 / p>
Firebase托管无法用于运行您的Java Web应用程序。
I am new to Java and I am trying to host a Java web app using Firebase.
Problem
My problem appears to be that my index.html
file does not exist in my Java file structure. Therefore, I can not "point to it" in my firebase.json
file.
Question
Firebase hosting setup instructions:
My error message:
When I follow the hosting instructions and browse to https://my-example-firebase.firebaseio.com/
I get the following error message.
My firebase.json
{
"firebase": "my-example-firebase",
"public": ".",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
]
}
As you can see, my firebase.json
file assumes my root
directory is my public
directory. However, that does not contain an index.html
file. Therefore, this is what I think I am missing about the structure of a Java web app and file structure. There IS NO index.html
file.
My file structure
(as scaffolded by Eclipse) (partially) looks like the following.
root
Deployment descriptor: myproject
JAX-WS Web Services
Java Resources
Javascript Resources
build
src
com.example.myproject
MyprojectUI.java
MyprojectUI
test
libraries
WebContent
ivy.xml
ivysettings.xml
I looked all through it and there is no index.html
file. I'm wondering if I need to maybe compile something into HTML and Javascript? Then serve that file? I'm lost and confused. Please somebody help.
Firebase Hosting is for hosting static assets only, so HTML, JavaScript, CSS, images, etc.
Firebase Hosting cannot be used to run your Java web application.
这篇关于我不知道托管一个Java Web应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!