开发者

Does tomcat compile servlets automatically?

When we modify a JSP , we can just overwrite the jsp and tomcat autmatically recompile the servelt asociated to it , but if we want to modify a servlet is enough to modify the .java or we need to deploy the .class too? ( I mean is tomcat capable of compiling the .java into a .class if a .clss is not found or is outdated) The question is if just deploying the .java from svn to the server and restarti开发者_运维问答ng tomcat imply that tomcat compile the .java in a .class or we need to deploy the .class too ( and having it in svn too)


The Tomcat deploy documentation says that if you use the Tomcat Client Deployer, it will automatically compile .java files located under /WEB-INF/classes. So if you put your sources there, they will be auto-compiled.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜