到tomcat/conf目录下,打开context.xml文件,找到<Context>标签,设置为:<Context reloadable="true">;这样,下次更新代码时,就不要redeploy了;