The prefix "p" for attribute "p:message" associated with an element type "b

Posted zjf6666

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了The prefix "p" for attribute "p:message" associated with an element type "b相关的知识,希望对你有一定的参考价值。

报错的主要原因是因为,引用了spEL表达式,但是却没有引用相应的包

在bean.xml 中添加 xmlns:p="http://www.springframework.org/schema/p"

<?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="helloWorld" class="com.zjf.test.HelloWorld"
p:message="saynow" ></bean>

</beans>






以上是关于The prefix "p" for attribute "p:message" associated with an element type "b的主要内容,如果未能解决你的问题,请参考以下文章

Spring配置文件标签报错:The prefix "XXX" for element "XXX:XXX" is not bound. .

Please make sure the TESSDATA_PREFIX environment variable is set to your "tessdata" direct

[CF1204E]Natasha,Sasha and the Prefix Sums 题解

解决升级android studio 3.2.1后 "No toolchains found in the NDK toolchains folder for ABI with prefix

新建 jsp异常,The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build P

关于jsp页面中:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build P