不用啊。
在Context中设置一下:<Context docbase="..." path="" reloadable="true" />reloadable属性为true,表示tomcat会自动更新。

解决方案 »

  1.   

    楼上的是说把源代码拷进去吧,我把源代码(是在windows下做的)拷进去后,tomcat(运行在linux上)又说“The source file encoding may be different with this platform encoding”不知道要怎么搞定
      

  2.   

    源代码拷进去?什么意思?
    reloadable属性为true就可以了啊
      

  3.   

    比如说类名是ClassA,我把ClassA.java拷到web-inf下面
      

  4.   

    楼上的到底要怎么做啊,要不要拷源代码进去,tomcat会不会自动编译这个源代码?
      

  5.   

    把ClassA.class拷到web-inf下面
      

  6.   

    拷进WEB-INF目录中的应该是编译后产生的class文件
      

  7.   

    用tomcat后台的manager管理web应用