The prefix "p" for attribute "p:pname" associated with an element type "bean" is not bound.

使用spring的p标签时报错:

The prefix "p" for attribute "p:pname" associated with an element type "bean" is not 

 bound.

这是因为在使用XML Schema作为配置文件的语义约束时,没有添加下面这条语句:

xmlns:p="http://www.springframework.org/schema/p"

猜你喜欢

转载自blog.csdn.net/weixin_40200876/article/details/88133316