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

The prefix p for attribute p:message associated with an element type bean相关推荐

  1. Attribute “singleton” must be declared for element type “bean”.

    文章目录 一.分析定位 1.异常现象 2.分析定位 二.解决方案 2.1.找坐标 2.3. 找jar包 2.3. 打开jar包 2.4. 找目录 2.5. 编辑xfire.xml 2.6. 编辑xfi ...

  2. [spring]Attribute scope must be declared for element type bean

    原来Attribute "scope"  在spring2.0以后支持,改一下配置文件即可 spring的XML配置文件的这个: <?xml version="1. ...

  3. Attribute name aphmodel associated with an element type mxg must be followed by the ' = ' charac

    1.错误描述 org.apache.batik.transcoder.TranscoderException: null Enclosed Exception: Attribute name &quo ...

  4. 解决Element type “http:“ must be followed by either attribute specifications, “>“ or “/>“.

    我一般只记录一些另类的解决办法,常规的解决办法请参考其他文章: https://blog.csdn.net/bestcxx/article/details/77989039 https://blog. ...

  5. Ibatis - Open quote is expected for attribute {1} associated with an element type '

    昨天晚上提交的代码,今天运行起来,始终报错: Open quote is expected for attribute "{1}" associated with an  elem ...

  6. Ibatis - Open quote is expected for attribute {1} associated with an element type '

    昨天晚上提交的代码,今天运行起来,始终报错: Open quote is expected for attribute "{1}" associated with an  elem ...

  7. 已解决 selenium.common.exceptions.NoSuchElementException: Message: Unable to locate element 找不到元素的问题

    场景 使用selenium的find_element_by_xpath()函数报错:selenium.common.exceptions.NoSuchElementException: Message ...

  8. Protobuf报错Protocol message tag had invalid wire type

    做李林峰的protobuf版本的图书订购服务这个案例,使用protobuf报错如下 io.netty.handler.codec.DecoderException: com.google.protob ...

  9. Message:Unable to locate element 问题解决方法

    Message:Unable to locate element 问题解决方法 参考文章: (1)Message:Unable to locate element 问题解决方法 (2)https:// ...

最新文章

  1. (Interrupt Latency) 中断延迟
  2. 【转】如何上传本地音乐作为百度空间背景音乐
  3. Shell脚本个例二
  4. Android应用中的动画详细使用教程
  5. Python资料分享来袭,收下不谢!
  6. vue中简单的小插曲
  7. 解决混合模式程序集在VS2010 .net 4.0 环境下调试出错的方法。
  8. 飞思卡尔单片机编程与c语言,飞思卡尔单片机C语言编程(中文).pdf
  9. 关于VS2005与Vs2008的比较
  10. CTF web题常用解题工具
  11. 如何恢复误删的注册表
  12. JetBrains Rider如何更改前进 后退 快捷键,并加到工具栏(图文详情)
  13. cocos creator3.3.0休闲游戏(云浮消消乐)源码H5+安卓+IOS三端源码
  14. 【深度学习kears+tensorflow】电影评论分类:二分类问题
  15. tensorflow中axis理解非常重要
  16. xcode6 关于iphone6、iphone6plus适配(一)
  17. 计算机网络维护日记,计算机网络维护实习日记.doc
  18. R 语言将数据的 jan 换为 1
  19. 「LOJ6482」LJJ爱数数
  20. python采用解释方式执行_Python解释执行原理

热门文章

  1. python类的数组属性_Python学习之数组类型一:
  2. IDEA Maven项目添加本地jar包
  3. Java 8 新特性 Stream类的collect方法
  4. SpringBootSwagger构建REST API并生成API文档
  5. Android开发笔记(六十三)HTTP访问的通信方式
  6. 2db多少功率_话筒的灵敏度:-58dB+(-)2dB表示什么意思,数字大的好,还是小的好呢?...
  7. python 运算符与流程控制
  8. LAMP的部署(一)
  9. tcpdump 一个比较详细的用法
  10. 1.3、解析并创建ApplicationListener(ok)