Read here: https://www.concretepage.com/spring/e...
In Spring XML, p-namespace is the XML shortcut for property element to inject bean dependency. The p-namespace replaces property tag in XML configuration. It is easier and clear to use and increases readability of XML configuration.