分享web开发知识

注册/登录|最近发布|今日推荐

主页 IT知识网页技术软件开发前端开发代码编程运营维护技术分享教程案例
当前位置:首页 > 前端开发

idea运行时默认显示的index.jsp修改方法

发布时间:2023-09-06 02:07责任编辑:苏小强关键词:jsjsp

在web.xml中加入以下代码,然后重启服务器就可以了.

<welcome-file-list> ???<welcome-file>这儿写你要显示的页面名称</welcome-file></welcome-file-list>

添加位置如下:

<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" ????????xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ????????xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" ????????version="3.1"> ???<welcome-file-list> ???????<welcome-file>login.jsp</welcome-file> ???</welcome-file-list></web-app>

这样运行项目时就默认显示login.jsp页面了

idea运行时默认显示的index.jsp修改方法

原文地址:https://www.cnblogs.com/c-c-c-c/p/9404402.html

知识推荐

我的编程学习网——分享web前端后端开发技术知识。 垃圾信息处理邮箱 tousu563@163.com 网站地图
icp备案号 闽ICP备2023006418号-8 不良信息举报平台 互联网安全管理备案 Copyright 2023 www.wodecom.cn All Rights Reserved