tomcat7 maven插件-未部署jsp/html
使用tomcat插件“tomcat7 maven plugin”,我试图让“热部署”与嵌入式tomcat一起工作(使用tomcat7:run) 我正在eclipse下使用典型的maven web应用程序配置。 从现在起,我可以调试我的java类,它们将在代码更改时自动重新部署 但是我的html和jsp没有得到重新部署(${basedir}/src/main/webapp)tomcat7 maven插件-未部署jsp/html,jsp,maven,hotdeploy,embedded-tomcat-7,Jsp,Maven,Hotdeploy,Embedded Tomcat 7,使用tomcat插件“tomcat7 maven plugin”,我试图让“热部署”与嵌入式tomcat一起工作(使用tomcat7:run) 我正在eclipse下使用典型的maven web应用程序配置。 从现在起,我可以调试我的java类,它们将在代码更改时自动重新部署 但是我的html和jsp没有得到重新部署(${basedir}/src/main/webapp) org.apache.tomcat.maven tomcat7 maven插件 2.2 真的 真的 (我使用的原型是“T
org.apache.tomcat.maven
tomcat7 maven插件
2.2
真的
真的
(我使用的原型是“Thymeleaf Spring Maven原型”)
知道如何在更改时重新部署html和jsp吗?我认为问题可能出在spring/thymeleaf配置中。请确保在spring配置中禁用thymeleaf模板缓存。见:(具体答案:) 通常,缓存应该只为生产启用(当然,可能会有例外,但是…)。另一方面,在开发中,人们对最新的模板更新很感兴趣
更新:再次阅读您的问题后,我感到困惑,正如您提到的thymeleaf,但jsp也是如此。就我所记得的,thymeleaf正在做html(作为jsp的替代方案)。那么,您使用的是thymeleaf还是jsp?因为我只选择了百里香路。太好了!默认情况下,Thymeleaf已启用缓存。非常感谢!
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
<version>2.2</version>
<configuration>
<update>true</update>
<contextReloadable>true</contextReloadable>
</configuration>
</plugin>