Java EE 项目没有看到数据库更改

发布于 2024-12-21 06:39:44 字数 184 浏览 2 评论 0原文

我正在为班级制作一个 java ee 项目,并且遇到一些数据库问题。当我加载页面时,它会正确加载数据库中的信息。如果我修改该页面上的信息并刷新,它就会正常工作。如果我在一台机器上打开页面,并在另一台机器上修改它,它就无法正常工作。

〜提前致谢。

PS 这似乎与 EclipseLink 缓存结果有关。我可以把它关掉吗?

I'm making a java ee project for class, and am having some issues with the database. When I load a page, it loads the information from the database correctly. If i modify that information on that page, and refresh, it works correctly. If i have the page open on one machine, and modify it on another machine, it does not work correctly.

~Thanks in advance.

P.S. It seems to have something to do with EclipseLink Caching the results. Could I turn it off?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

野味少女 2024-12-28 06:39:44

截至 2012 年 7 月,用于禁用 EclipseLink 共享缓存的属性名称已更改为

<property name="eclipselink.cache.type.default" value="None"/>

这将使 Eclipse 立即拾取数据库架构更改。

As of July 2012 the property name to disable the EclipseLink shared cache has changed to

<property name="eclipselink.cache.type.default" value="None"/>

This should make Eclipse pick up database schema changes immediately.

偏爱你一生 2024-12-28 06:39:44

我已经在想这是关于 JPA 的,所以是的,你可以关闭它。
将此代码粘贴到 persistence.xml

<property name="eclipselink.cache.shared.default" value="false"/>

了解更多

I was already thinking that it's about JPA so yes you can turn if off.
Paste this code into your persistence.xml

<property name="eclipselink.cache.shared.default" value="false"/>

Read More

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文