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

报错的主要原因是因为,引用了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>

原文地址:https://www.cnblogs.com/zjf6666/p/9675375.html

时间: 2024-10-04 12:27:15

The prefix "p" for attribute "p:message" associated with an element type "bean"的相关文章

Attribute name &quot;aphmodel&quot; associated with an element type &quot;mxg&quot; must be followed by the &#39; = &#39; charac

1.错误描述 org.apache.batik.transcoder.TranscoderException: null Enclosed Exception: Attribute name "aphmodel" associated with an element type "mxg" must be followed by the ' = ' character. at org.apache.batik.transcoder.XMLAbstractTransco

Attribute &quot;resultType&quot; must be declared for element type &quot;update&quot; or &quot;insert&quot;

仔细查看错误如图所示: 解决错误就是把resultType去掉,因为在insert和update语句中是没有返回值的.小坑小坑 转自:https://blog.csdn.net/u013144287/article/details/77328265 原文地址:https://www.cnblogs.com/isme-zjh/p/11764209.html

[Fatal Error] :3:13: Open quote is expected for attribute &quot;{1}&quot; associated with an element type &quot;id&quot;.

用DOM解析XML时出现了如下错误: [Fatal Error] :3:13: Open quote is expected for attribute "{1}" associated with an  element type  "id".org.xml.sax.SAXParseException: Open quote is expected for attribute "{1}" associated with an  element t

Ecliplse 重命名后web.xml 报错Attribute &quot;xmlns&quot; was already specified for element &quot;web-app&quot;.

报错信息:Attribute "xmlns" was already specified for element "web-app" 由于项目的重命名,出现了xmlns的重复赋值,这可能是eclipse自己设定的一种方式,重新为项目匹配合适的配置. <web-app xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance” xmlns=”http://java.sun.com/xml/ns/javaee” xm

Element type &quot;LinearLayout&quot; must be followed by either attribute specifications, &quot;&gt;&quot; or &quot;/&gt;&quot;的解决办法

看老师的word文档开始学习.复制了一段代码,在layout中新建了一个Android XML file,发现有提示错误. 代码如下: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"               android:layout_width=&

Open quote is expected for attribute &quot;property&quot; associated with an element type &quot;result&quot;.错误

java  Mybatis 框架下的项目 报   Open quote is expected for attribute "property" associated with an element type "result".    这个错 眼快使瞎了,终于找到了 错误写法: <result column="DELETE_STATUS" property=delete_status  jdbcType="VARCHAR"

CXF wsdl2java : The attribute required is undefined for the annotation type XmlElementRef

cxf 根据wsdl 文件生成客户端Java类 下载:apache-cxf-2.7.5 1.打开cmd 进入 apache-cxf-2.7.5\bin 2.输入 wsdl2java -p "生成类的包名" - client "wsdl地址" 例如:(wsdl2java.bat -frontend jaxws21  -p "com.test" -client  "http://192.168.3.105/services/Msp?wsdl

Element type &quot;property&quot; must be followed by either attribute specifications, &quot;&gt;&quot; or &quot;/&gt;&quot;

Caused by: org.hibernate.InvalidMappingException: Unable to read XML at org.hibernate.util.xml.MappingReader.readMappingDocument(MappingReader.java:101) at org.hibernate.cfg.Configuration.add(Configuration.java:513) at org.hibernate.cfg.Configuration

Eclipse报错:Attribute &quot;xmlns&quot; was already specified for element &quot;web-app&quot;.

原因: 在Eclipse中修改了已有的Web工程的工程名,然后出现该错误. Attribute "xmlns" was already specified for element "web-app". 检查web.xml文件: <?xml version="1.0" encoding="UTF-8"?><web-app xmlns:xsi="http://www.w3.org/2001/XMLSch