Invalid bean definition with name 'mailSender' defined in class path resource [office.mail.xml
来源:互联网 发布:c语言0xff是什么意思 编辑:程序博客网 时间:2024/06/05 04:26
今天项目出现这个异常。看完整的。
org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'mailSender' defined in class path resource [office.mail.xml]: Could not resolve placeholder 'mail.smtp.host'
注意关键字:placeholder。
配置文件中出现了多个或PropertyPlaceholderConfigurer
所有都要加上ignore-unresolvable=”true”,这样就好了。
原因是,我将spring做了拆分,出现了多个placeholder。
0 0
- Invalid bean definition with name 'mailSender' defined in class path resource [office.mail.xml
- Invalid bean definition with name 'dataSource' defined in class path resource [spring-mybatis.xml]:
- Invalid bean definition with name ‘dataSource’ definition in class path resource [applicationContext
- Invalid bean definition with name 'dataSource' defined in class
- Error creating bean with name 'mySessionFactory' defined in class path resource [applicationContext.xml]:
- Error creating bean with name 'userLoginDAO' defined in class path resource [applicationContext.xml]
- 一、Error creating bean with name 'hsFactory' defined in class path resource [xxx.xml]:
- Bug--Error creating bean with name 'sessionFactory' defined in class path resource [data_context.xml
- Error creating bean with name 'cxf' defined in class path resource [META-INF/cxf/cxf.xml]
- Error creating bean with name 'bookBizImpl' defined in class path resource [applicationContext.xml]
- Error creating bean with name 'sessionFactory' defined in class path resource [beans.xml]: Invocatio
- Error creating bean with name 'dataSource' defined in class path resource [applicationContext.xml]:
- Error creating bean with name 'diaryDAO' defined in class path resource [applicationContext.xml]:
- Error creating bean with name 'dataSource' defined in class path resource [applicationContext.xml]: Initialization of bean faile
- Invalid bean definition with name 'connectionFactory' defined in
- Error creating bean with name 'userService' defined in class path resource [beans.xml]: Unsatisfied dependency expressed through
- 解决错误Error creating bean with name 'MySessionFactory' defined in class path resource [applicationContext.xml]: Invocation of init
- Error registering bean with name 'dataSource' defined in class path resource
- 用sockets打造自己的Android聊天app(安卓篇)
- mac 终端 常用命令
- 《数据结构与算法》学习笔记21 递归_消除递归
- CSS常见问题解决001——子div的margin-top影响父div的位置
- StringTokenizer与split()分割单词区别
- Invalid bean definition with name 'mailSender' defined in class path resource [office.mail.xml
- CSS常用效果实现001——将正方形图显示为圆形
- WebStorm 2016.2.2最新版-破解+汉化教程
- 合并本地文件到HDFS文件中
- 用Ant工具管理你的Web应用程序
- 内连接与外连接区别
- windows 7 64位 安装redis2.8.12 版本
- IOS开发工具——网络封包分析工具Charles
- 【数据结构】B树和B+树讲解