Java EE 项目没有看到数据库更改
我正在为班级制作一个 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
截至 2012 年 7 月,用于禁用 EclipseLink 共享缓存的属性名称已更改为
这将使 Eclipse 立即拾取数据库架构更改。
As of July 2012 the property name to disable the EclipseLink shared cache has changed to
This should make Eclipse pick up database schema changes immediately.
我已经在想这是关于 JPA 的,所以是的,你可以关闭它。
将此代码粘贴到 persistence.xml
了解更多
I was already thinking that it's about JPA so yes you can turn if off.
Paste this code into your persistence.xml
Read More