[spring] Added inheritance example.