Tomcat没有部署 [英] Tomcat not deploying

查看:92
本文介绍了Tomcat没有部署的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们,我正在开发一个简单的Spring Java应用程序。

有时(随机)我重新发布到服务器但是当我在服务器上运行它时,没有进行更改。你能帮助我吗?我已经关闭了自动编码器。我正在使用带有Tomcat 8.5的Spring Tool Suit。

谢谢大家



编辑:

结果tomcat正在正确部署(我认为),但是当打开页面时,他会在缓存上加载页面。如果我刷新,则进行更改。有人知道如何防止这种情况吗?



我尝试过:



搜索谷歌,但没有太多信息。

I guys, I'm working on a simple Spring Java application.
Sometimes (randomly) I republish to the server but when I run it on the server the changes weren't made. Can you help me? I've turned off the autodeploy. I'm using Spring Tool Suit with Tomcat 8.5.
Thank you guys


Turns out that tomcat is deploying correctly (I think) but when opens the page he loads the page on cache. If I refresh, changes are made. Anyone knows how to prevent this?

What I have tried:

Searched google but there's not much information on this.

推荐答案

Tomcat正在部署,但浏览器正在打开缓存页面。只需刷新页面并进行更改。



我正在使用百里香。如果您不想永久使用xml配置中的以下代码:



Tomcat is deploying but browser is opening the cached page. Just refresh the page and changes are made.

I'm working with thymeleaf. If you wan't to make it permanent use the following code on your xml config:

<bean id="templateResolver" class="org.thymeleaf.templateresolver.ServletContextTemplateResolver">
    <property name="cacheable" value="false" />
</bean>


这篇关于Tomcat没有部署的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆