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
The prefix p for attribute p:message associated with an element type bean相关推荐
- 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 ...
- [spring]Attribute scope must be declared for element type bean
原来Attribute "scope" 在spring2.0以后支持,改一下配置文件即可 spring的XML配置文件的这个: <?xml version="1. ...
- 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 ...
- 解决Element type “http:“ must be followed by either attribute specifications, “>“ or “/>“.
我一般只记录一些另类的解决办法,常规的解决办法请参考其他文章: https://blog.csdn.net/bestcxx/article/details/77989039 https://blog. ...
- Ibatis - Open quote is expected for attribute {1} associated with an element type '
昨天晚上提交的代码,今天运行起来,始终报错: Open quote is expected for attribute "{1}" associated with an elem ...
- Ibatis - Open quote is expected for attribute {1} associated with an element type '
昨天晚上提交的代码,今天运行起来,始终报错: Open quote is expected for attribute "{1}" associated with an elem ...
- 已解决 selenium.common.exceptions.NoSuchElementException: Message: Unable to locate element 找不到元素的问题
场景 使用selenium的find_element_by_xpath()函数报错:selenium.common.exceptions.NoSuchElementException: Message ...
- Protobuf报错Protocol message tag had invalid wire type
做李林峰的protobuf版本的图书订购服务这个案例,使用protobuf报错如下 io.netty.handler.codec.DecoderException: com.google.protob ...
- Message:Unable to locate element 问题解决方法
Message:Unable to locate element 问题解决方法 参考文章: (1)Message:Unable to locate element 问题解决方法 (2)https:// ...
最新文章
- (Interrupt Latency) 中断延迟
- 【转】如何上传本地音乐作为百度空间背景音乐
- Shell脚本个例二
- Android应用中的动画详细使用教程
- Python资料分享来袭,收下不谢!
- vue中简单的小插曲
- 解决混合模式程序集在VS2010 .net 4.0 环境下调试出错的方法。
- 飞思卡尔单片机编程与c语言,飞思卡尔单片机C语言编程(中文).pdf
- 关于VS2005与Vs2008的比较
- CTF web题常用解题工具
- 如何恢复误删的注册表
- JetBrains Rider如何更改前进 后退 快捷键,并加到工具栏(图文详情)
- cocos creator3.3.0休闲游戏(云浮消消乐)源码H5+安卓+IOS三端源码
- 【深度学习kears+tensorflow】电影评论分类:二分类问题
- tensorflow中axis理解非常重要
- xcode6 关于iphone6、iphone6plus适配(一)
- 计算机网络维护日记,计算机网络维护实习日记.doc
- R 语言将数据的 jan 换为 1
- 「LOJ6482」LJJ爱数数
- python采用解释方式执行_Python解释执行原理
热门文章
- python类的数组属性_Python学习之数组类型一:
- IDEA Maven项目添加本地jar包
- Java 8 新特性 Stream类的collect方法
- SpringBootSwagger构建REST API并生成API文档
- Android开发笔记(六十三)HTTP访问的通信方式
- 2db多少功率_话筒的灵敏度:-58dB+(-)2dB表示什么意思,数字大的好,还是小的好呢?...
- python 运算符与流程控制
- LAMP的部署(一)
- tcpdump 一个比较详细的用法
- 1.3、解析并创建ApplicationListener(ok)