两种方法
懒得翻译,都是摘抄的
第一种
来自于
https://intellij-support.jetbrains.com/hc/en-us/community/posts/206329989-How-to-configure-additional-context-information-in-Tomcat
To do this, you have to click on Run > Edit Configurations to open the Run/Debug Configurations Dialog. Then open the Tomcat Server tab. Next click on the Startup/Connection sub tab. Select the Run entry. For the Startup script entry unselect "use default". Now click on the Edit button next to the box you just unselected. This opens the Configure VM and Program Parameters dialog. For "Program Parameters" you hav per default the command run. Add -config ]]>, On my system the entry would be:
run -config C:/usr/local/tomcat/apache-tomcat-5.5.15/conf/server.xml
That made IntelliJ using the server.xml in the Tomcat installation which now give me the desired Context configuration.
第二种
To get around this big mess and just use your Tomcat as if you ran it outside of IDEA you simply add a CATALINA_BASE environment variable to the configuration of Tomcat (within IDEA) pointing to your Tomcat directory:
分享到:
相关推荐
配置多个应用服务器的方式。包括多个服务器的搭建以及多端口访问。
其实并没有标准定义。一般认为,Web 服务器一般指网站服务器, 是指驻留于因特网上某种类型计算机的程序,可以向浏览器等 Web 客户端提供文 档,也可以放置网站文件,让全世界浏览;...2.4.Idea 配置 tomcat
Browser/Server 浏览器/服务器 访问服务器资源不需要专门安装客户端软件,而是直接通过浏览器访问服务器资源. 例如: 天猫、京东、知乎网站 开发者通过web服务器可以把...进入Tomcat安装目录/conf/server.xml 文件修改
信息: Find registry server-registry.xml at classpath resource 2010-8-11 18:24:13 org.apache.catalina.startup.Catalina start 信息: Server startup in 1235 ms 查了一下,需要一个apr支持,然后按提示去 下载...
1.部署当前项目的时候,需要修改tomcat部署文件server.xml配置文件 jsp+servlet开发java web网上花店商城系统,后台可配置化,方便修改,也可修改做成其他商城类项目; 其他按照正常操作来,即可完成项目部署运行,...
在tomcat server.xml文件:Host标签里面;添加; <Context path="/" docBase="F:/IDEA_workspace/deploy_apps_workspace/demo1/yao.demos.war"/> 地址改成自己的;path为/;表示不加项目名访问; 启动完成过后为 ...
个人博客cms系统V1.0 项目主要内容 前台 博客主页文章列表展示 博客分类标签展示 博客文章详情页 博客文章评论系统(多排名...配置tomcat配置文件server.xml增加虚拟路径,供访问本地图片(看不懂的自行google了解〜)
第三步:配置tomcat的server.xml文件。 unpackWARs autoDeploy=true xmlValidation=false xmlNamespaceAware=false> <Context docBase=程序的绝对路径 path=访问路径 reloadable=true source=
找到tomcat目录下的/conf/server.xml,为其添加maxPostSize参数 参数值“-1”表示不做大小限制。不设置maxPostSize参数意为使用默认的大小,默认2097152bytes,即为2megabytes。 三、设值注意事项 需要注意一点的...
Mall-Server基于SSH的商城后台API应用技术栈Struts 2.5.16Hibernate 5.0.7Spring 5.1.7开发环境IDEA 2017数据库MysqlMaven使用 Maven 来整合 SSH,详细配置见配置文件 `pom.xml`使用 Spring 整合了 Struts2 和 ...
├── zheng-config -- 配置中心[端口:1001] ├── zheng-upms -- 用户权限管理系统 | ├── zheng-upms-common -- upms系统公共模块 | ├── zheng-upms-dao -- 代码生成模块,无需开发 | ├── zheng-upms-...
可以使用Intellij Idea进行编译(使用WEB-INF文件夹中的maven和pom.xml) 运行服务器时,您需要添加一些系统属性( videoplayer.videos和videoplayer.root ),例如,添加到以Tomcat -Dvideoplayer.videos=...
12.3.3 配置——Config(Config Server) 461 12.3.4 服务模块——Person 服务 463 12.3.5 服务模块——Some 服务 466 12.3.6 界面模块——UI(Ribbon,Feign) 468 12.3.7 断路器监控——Monitor(DashBoard) 473 ...
12.3.3 配置——Config(Config Server) 461 12.3.4 服务模块——Person 服务 463 12.3.5 服务模块——Some 服务 466 12.3.6 界面模块——UI(Ribbon,Feign) 468 12.3.7 断路器监控——Monitor(DashBoard) 473 ...
12.3.3 配置——Config(Config Server) 461 12.3.4 服务模块——Person 服务 463 12.3.5 服务模块——Some 服务 466 12.3.6 界面模块——UI(Ribbon,Feign) 468 12.3.7 断路器监控——Monitor(DashBoard) 473 ...
### Intellij Idea - 在 1-AppServer (Tomcat) 上部署 2-artifact (s) 在“部署”选项卡中,您需要在不同的上下文路径下指定 2 个工件(按严格顺序:客户端 + 服务器) ### 如何在 Java EE 中实现安全性 ###对于...
(1)jsp显示中文文件名的图片 方法一、将Tomcat中的server.xml文件中改为: 代码如下: ”8080″ maxHttpHeaderSize=”8192″ maxThreads=”150″ minSpareThreads=”25″ maxSpareThreads=”75″ enableLookups=”...
o Apache Tomcat o Oracle9i Application Server o JBoss o Macromedia JRun ........ 可与下列开发环境整合 o IBM WebSphere Studio Application Developer (WSAD) o Eclipse o Borland JBuilder o IntelliJ ...
o Apache Tomcat o Oracle9i Application Server o JBoss o Macromedia JRun ........ 可与下列开发环境整合 o IBM WebSphere Studio Application Developer (WSAD) o Eclipse o Borland JBuilder o IntelliJ ...