手动通过tomcat加载一个war项目。
生活随笔
收集整理的這篇文章主要介紹了
手动通过tomcat加载一个war项目。
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
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项目。的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 咪咕视频ApP
- 下一篇: 贴贴怎么贴(贴贴是什么梗)