0
0

More than 5 years have passed since last update.

JPAのキャッシュ無効化

Posted at

自分用備忘録

JPAのキャッシュを無効にし、常にDBからデータを取得するように設定する方法を以下に記載。

persistance.xmlにshared-cache-modeを指定する

persistance.xml
<jta-data-source>jdbc/PostgreSQL9.4</jta-data-source>
<shared-cache-mode>NONE</shared-cache-mode>
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0