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
コメント