Is there another way to get this xmlns:p? here is my trying:
xml:
<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:p="http://www.springframework.org/schema/p"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
<bean id="testPNamespace" class="org.learning.exemples.PNamespaceTest"
p:value ="10">
</bean>
Class:
package org.learning.exemples;
public class PNamespaceTest {
private final String value;
public PNamespaceTest(String value) {
this.value = value;
}
public String getValue() {
return value;
}
}
IDE error message:
Attribute p:value is not allowed here