tomcat deployment war package

  • The war cannot be deleted when tomcat is running, otherwise the automatically decompressed project will be deleted. You can delete war after stopping tomcat.
  • When you redeploy, if there is the same folder as the war file, it will not redeploy.
 
   
  1. 因为tomcat在运行期, 会實時监控webapps目錄下的war文件,如果有新增的war,就去解压它; 有删除war,就连同项目一起删除 .
  2. So, if you want to delete, you can close tomcat first and then delete , it will not affect


  • How to load the WAR package under Tomcat/webapps and the decompressed project with the same name ? ?

 
    
  1. 首先你要明白什么时候war包才会解压
  2. tomcat启动时候会去查看webapps目錄下的所有war包,同时查看是否有该war包对应的已解压的同名文件夹
  3. 如果已经存在就不会再解压也不會覆蓋該工程下已經被修改過的文件.
  4. 只有当你删除war包对应的同名文件夹(即 你的工程 )后,启动tomcat时才会再進行解压war文件動作

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325813942&siteId=291194637