Loading...
「ツール」は右上に移動しました。
利用したサーバー: wtserver3
7いいね 1232回再生

Spring’s readOnly = true Is LYING to You 😱 (Transactional Truth Bomb)

Think @Transactional(readOnly = true) makes your method truly read-only? Think again. In Spring Boot, this flag is often ignored by the actual database — and your write operations might still go through.

In 60 seconds, we break down:
⚠️ What readOnly = true actually does
🔍 Why Spring won’t block writes inside it
✅ What to do instead to protect your data layer

Comment “NO FAKE READ-ONLY” if you've been fooled by this setting

コメント