1.直接放在webapps下面,然后启动bin目录下面的startup.bat即可

2.登录tomcat启动

<?xml version='1.0' encoding='utf-8'?>
<!--Licensed to the Apache Software Foundation (ASF) under one or morecontributor license agreements.  See the NOTICE file distributed withthis work for additional information regarding copyright ownership.The ASF licenses this file to You under the Apache License, Version 2.0(the "License"); you may not use this file except in compliance withthe License.  You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, softwaredistributed under the License is distributed on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.See the License for the specific language governing permissions andlimitations under the License.
-->
<tomcat-users>
<!--NOTE:  By default, no user is included in the "manager-gui" role requiredto operate the "/manager/html" web application.  If you wish to use this app,you must define such a user - the username and password are arbitrary.
-->
<!--NOTE:  The sample user and role entries below are wrapped in a commentand thus are ignored when reading this file. Do not forget to remove<!.. ..> that surrounds them.
-->
<!--<role rolename="tomcat"/><role rolename="role1"/><user username="tomcat" password="tomcat" roles="tomcat"/><user username="both" password="tomcat" roles="tomcat,role1"/><user username="role1" password="tomcat" roles="role1"/>
--><user username="tomcat" password="tomcat" roles="manager-gui,admin-gui"/>
</tomcat-users>

用上面这段话替换掉    tomcat-users.xml文件,用户名tomcat,密码tomcat  登录,然后引入war包,部署就行。

手动通过tomcat加载一个war项目。相关推荐

  1. java加载一个来自项目之外的java文件,执行其main方法的一种实现方式

    目录 写在前面 代码实现思路 代码具体实现 写在前面 近期有一个小想法,就是我一个springboot项目,想做一个给用户可以编写java代码并且直接在页面运行的功能. 难点就在于,如何将java文本 ...

  2. 一劳永逸部署项目:通过tomcat加载环境变量

    一劳永逸部署项目:通过tomcat加载环境变量 转载自:https://blog.csdn.net/u010414666/article/details/46499953 一.说明 项目中经常会用到x ...

  3. Tomcat - 模拟Tomcat的webappClassLoader加载自己war包应用内不同版本类实现相互共存与隔离

    文章目录 Pre Tomcat要解决什么问题? Tomcat违反了双亲委派机制? 模拟Tomcat的webappClassLoader加载自己war包应用内不同版本类实现相互共存与隔离 Tomcat加 ...

  4. 无法加载具有重复项目项的项目: pathstroke.cpp 作为 ClCompile 且作为 None 项类型包括在其中。

    右击无法加载的那个项目,选择 "编辑 <projectName>.vcxproj", 查找到重复的一行(在此项目中如错误信息所报,重复加载了一个名为pathstroke ...

  5. java spring包_java 自定义加载器,加载spring包,动态加载实现,jar包隔离,tomcat加载webapp方式...

    java 自定义加载器,加载spring包,动态加载实现,jar包隔离,tomcat加载webapp方式 发布时间:2018-08-20 12:02, 浏览次数:774 , 标签: java spri ...

  6. Qt同时加载多个项目

    Qt同时加载多个项目 如何将多个项目使用一个.pro文件启动起来? 新建一个.pro文件,加入如下几行: TEMPLATE = subdirs SUBDIRS += ComboBox/ComboBox ...

  7. VS2019 error  : 无法加载具有重复项目项的项目: ....作为 Image 且作为 Image 项类型包括在其中。

    拷贝过来的一个vcc solution,打开时无法加载其中的项目,报错内容如下, error  : 无法加载具有重复项目项的项目: res\POLYGON.png 作为 Image 且作为 Image ...

  8. WordPress下拉加载插件Infinite Scroll之手动点击加载实现

    本文基于上一篇博文<WordPress 无限分页下拉加载插件(Infinite Scroll)功能使用记录>而写,上文说到WordPress插件Infinite Scroll的自动加载分页 ...

  9. 无法加载一个或多个请求的类型。有关更多信息,请检索 LoaderExceptions 属性。

    最近在项目中添加了统计功能,需要分析用户请求的useragent,识别出用户手机类型(android,ios),系统版本,通过ip识别用户所在地区 因为之前已经记录了用户的请求统计,所以这次考虑用qu ...

最新文章

  1. 华为云客户端_从技术角度解读华为云手机之于普通用户的可行性
  2. ASP .NET Core Web MVC系列教程三:添加视图
  3. Spring component-scan类扫描加载过程
  4. 判断页面在手机和pc打开的方法
  5. 2018年去贷款,是否可以不用找信贷经理帮忙?
  6. SharePoint 2013 - System Features
  7. oracle 主键约束复制,Oracle主键及约束
  8. Windows底层窗口的实现———学习笔记
  9. 2018年最新Spring Boot视频教程附代码笔记资料(50G)
  10. MyBatis获取参数值的两种方式以及传参情况
  11. SPMetal语法用法
  12. 对目录下所有库文件进行rpath更改操作的SHELL脚本
  13. (转)某期货系统漏洞致巨损二审在即 千万损失谁来买单?
  14. 开关电源设计书籍推荐
  15. Word文档另存为PDF时修改的交叉引用还原bug
  16. ODC(Orthogonal Defect Classification)简介
  17. 数据挖掘与数据化运营实战
  18. python random模块中seed函数的详解_random.seed()函数理解
  19. PAT A1103 Integer Factorization整数分解 (经典DFS优化)
  20. 2021-06-07 RK3328 Android 10 上调试es7243记录

热门文章

  1. 如何用java语言调用tensorflow训练好的模型
  2. ReenTrantLock可重入锁(和synchronized的区别)总结
  3. GitLab CI/CD 因git凭据踩坑
  4. 2.3、Android Studio使用Layout Editor设计UI
  5. Linux ALSA声卡驱动之七:ASoC架构中的Codec
  6. 转贴:Hyper-V的几款免费管理工具
  7. Multidex(二)之Dex预加载优化
  8. python虚拟环境 virtualenv工具
  9. 剑指offer第12题打印从1到n位数以及大整数加法乘法
  10. .NET MD5加密解密代码