What is “p” namespace ?

  • Spring’s “p” name space is an alternative to using the property tag.
  • Using “p” namespace, we can perform dependency injection by directly using the attribute of bean tag instead of using the property.
  • “p” namespace is more compact than property tag.
  • Using “p” namespace reduces the amount of XML required in Spring configuration.
  • The size of spring configuration using p namespace is typically less than one with using property tag.
xmlns:p="http://www.springframework.org/schema/p"

For more detail, Please watch below video –

 

Thanks for reading 🙂

Please Subscribe our you tube channel Almighty Java

Leave a comment