Java – why do you actually need war files in Tomcat?

Why not put the files in a subdirectory under the webapps directory?

Solution

Using war files has no performance advantage In fact, before running webapp, a typical web container decompresses the deployed war file into the webapp Directory... This takes time

The real benefit of war and ear files is to simplify deployment... Suppose you don't develop code as well as you do on a real-time production server

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>