Tomcat 系列学习---《Serve modules without publishing》

Server Options的第一个选项Serve modules without publishing

在默认情况下,当项目部署到tomcat中,该插件会把项目文件拷贝到上一个配置项Server Locations中的显示Server path的wtpwebapps目录下,即当前wrokspace所在目录下的。metadata子目录中,如我的wrokspace是D:\workspace,那么该目录是:D:\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps。但如果选中上面的这个选项,则不会把项目文件发布到该目录下运行,而是:web资源目录是:web项目的WebContent,即maven web项目的src/main/webapp目录 ,class文件目录是:是当前配置的class文件的输出目录,即maven项目的target/classes目录

选择Publish module contexts to separate XML files。如果不选一般会报错。did not find a matching property。这一步的主要目的在于 :使本来     配置在conf/server.xml里的<context>元素,separate到/conf/Catalina/localhost/的目录下专门生成一个{context_name}.xml。 

modules auto reload by default意思是自动自加载

enable security 启用安全保护我们的应用

参考链接:https://blog.csdn.net/dcx903170332/article/details/49127723

发布了81 篇原创文章 · 获赞 10 · 访问量 2909

猜你喜欢

转载自blog.csdn.net/A_bad_horse/article/details/104987202