idea中web项目下web根目录名称更改

web项目下web根目录名称是可以更改的

idea中新建java web项目,默认的web根目录名称为web,如下:

右键重命名后,注意Web Resource Directory Path也要跟着更改,如下:

idea中新建java maven web项目,默认web根目录名称为webapp,如下:

右键重命名后,注意Web Resource Directory Path也要跟着更改,不再贴图

原文地址:https://www.cnblogs.com/yanguobin/p/11520313.html

时间: 2024-08-01 14:44:38

idea中web项目下web根目录名称更改的相关文章

Visual Studio 中用于 ASP.NET Web 项目的 Web 服务器

Visual Studio 中用于 ASP.NET Web 项目的 Web 服务器 当您在 Visual Studio 中开发 Web 项目时,需要 Web 服务器才能测试或运行它们.             利用 Visual Studio,您可以使用不同的 Web 服务器进行测试,包括 IIS Express.Internet Information Services (IIS).外部主机或自定义 Web 服务器.  您可以将其中任何一种 Web 服务器用于基于文件的 Web 应用程序项目.

Visual Studio中用于ASP.NET Web项目的Web服务器

当您在 Visual Studio 中开发 Web 项目时,需要 Web 服务器才能测试或运行它们. 利用 Visual Studio,您可以使用不同的 Web 服务器进行测试,包括 IIS Express.Internet Information Services (IIS).外部主机或自定义 Web 服务器. 您可以将其中任何一种 Web 服务器用于基于文件的 Web 应用程序项目. 对于基于文件的网站项目,您可以使用 IIS Express. 本主题介绍每种 Web 服务器以及如何选择要用

解决maven生成的web项目下的servlet.jar与tomcat自带servlet.jar冲突的问题

使用maven生成web工程后,编译需要下servlet-api.jar和jsp-api.jar文件. pom文件中的写法为: <dependency> <groupId>javax.servlet</groupId> <artifactId>servlet-api</artifactId> <version>2.5</version> </dependency> 这种写法在使用mvn targe命令时有效的,

web项目下的web.xml listener监听总结

监听域对象中属性的监听器 域对象中属性的变更的事件监听器就是用来监听 ServletContext, HttpSession, HttpServletRequest 这三个对象中的属性变更信息事件的监听器. 这三个监听器接口分别是ServletContextAttributeListener, HttpSessionAttributeListener 和ServletRequestAttributeListener,这三个接口中都定义了三个方法来处理被监听对象中的属性的增加,删除和替换的事件,同

Web项目下的WebRoot和WebContent

Web项目发布到Tomcat中. 在Eclipse中生成项目是WebContent目录 而在MyEclipse中生成的项目目录名字好像叫做WebRoot,那么如果把MyEclipse的项目导入到Eclipse中,如果要部署项目到Tomcat中需要做什么修改呢.只需如下一部 1.右键点击项目--属性--Add 添加WebRoot目录,删除WebContent

maven web项目的web.xml报错The markup in the document following the root element must be well-formed.

maven项目里面的web.xml开头约束是这样的 <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java

Websphere中获取项目下.properties路径

一:如果容器为Websphere,那下面为红色的地方不能加"/",如果为tomcat,则加上"/", Java代码   String  path = this.class.getResource("").getPath()+"config.properties"; Properties properties= new Properties(); properties.load(new FileInputStream(new F

命名空间“System.Web.Mvc”中不存在类型或命名空间名称“Ajax”(是否缺少程序集引用?)

从SVN中检出新项目之后本地编译可以通过,但是运行一直报错,错误提示信息:命名空间“System.Web.Mvc”中不存在类型或命名空间名称“Ajax”(是否缺少程序集引用?) 后来发现"System.Web.Mvc"这个dll文件的引用路径在本地,而我本地对应的路径下面没有这个dll,所以报错了,引用的具体路径为:C:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.Web.Mvc\v4.0_4.0.0.1__31bf3856ad364e

&quot;命名空间&quot;system.web&quot;中不存在类型或命名空间名称security&quot;错误解决方法

using System; using System.Collections.Generic; using System.Text; using System.Web; namespace 求md5 { class Program { static void Main(string[] args) { string str = GetMd5("xuwei"); Console.WriteLine(str); } public static string GetMd5(string st