0 jsp web-applications glassfish-4 java-ee-7
我有一个小问题。是否可以“删除”index.html 并创建(替换 index.html)index.jsp?如何?
我没有找到任何带有主页地址 (index.html) 的文件(web.xml、glassfish-resource.xml)来更改它(对于 index.jsp)。我在网上没有找到答案...
感谢您的回复!
您需要为您的应用程序配置欢迎文件列表。默认情况下,它是 index.html,这就是您找不到任何定义它的原因。
看一下web.xml Deployment Descriptor Elements 你基本上需要
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
Run Code Online (Sandbox Code Playgroud)