Spring AI Guardrails: 4 Layers That Actually Hold
Learn how to build Spring AI guardrails with SafeGuardAdvisor, custom PII masking, and output rails to stop prompt injection and data leaks.
$ whoami
Spring Developer Advocate @ Broadcom
Hello ๐๐ป My name is Dan Vega, Java Champion, Spring Developer Advocate, Husband and #GirlDad based outside of Cleveland OH. I created this website as a place to document my journey as I learn new things and share them with you. I have a real passion for teaching and I hope that one of blog posts, videos or courses helps you solve a problem or learn something new.
public record Developer(
String name, // Dan Vega
String role, // Spring Dev Advocate
int yearsExperience // 25 and counting
) {}
var dan = new Developer(
"Dan Vega",
"Java Champion",
25
);
System.out.println("Let's build something ๐");$ ls ~/blog --latest
Learn how to build Spring AI guardrails with SafeGuardAdvisor, custom PII masking, and output rails to stop prompt injection and data leaks.
Learn what that docker-compose.yml in every Java repo actually does. Spin up Postgres with one command and run any project you clone with zero setup.
Build a Claude-style 'Calling tool...' UI with Spring AI 2.0's ToolCallingAdvisor. Stream live tool call events over SSE from the ChatClient advisor chain.
$ subscribe --list weeklyish
Java, Spring, and what I'm learning โ one email, weekly(ish). Unsubscribe anytime.