Could not resolve matching constructor (hint: specify index/type/name arguments for simple parameter
来源:互联网 发布:xp网络共享 编辑:程序博客网 时间:2024/06/05 06:27
报错:Could not resolve matching constructor (hint: specify index/type/name arguments for simple parameter
解决方法:
public class UrlConstant {
public static String AGENT_URL;
public static String STATISTICAL_URL;
public UrlConstant(String AGENT_URL, String STATISTICAL_URL){
super();
this.AGENT_URL = AGENT_URL;
this.STATISTICAL_URL = STATISTICAL_URL;
}
}
xml:
<bean id="urlConstant" class="gt.common.UrlConstant">
<constructor-arg index="0">
<value>http://www.baidu1.com</value>
</constructor-arg>
<constructor-arg index="1">
<value>http://www.baidu2.com</value>
</constructor-arg>
这样,UrlConstant 中就可以读到xml中配置的值了
阅读全文
0 0
- Could not resolve matching constructor (hint: specify index/type/name arguments for simple parameter
- Could not resolve matching constructor (hint: specify index/type/name arguments for simple parameter
- Could not resolve matching constructor (hint: specify index/type/name arguments for simple parameter
- Could not resolve matching constructor (hint: specify index/type/name arguments for simple paramet
- Error creating bean with name 'amqpTemple' Could not resolve matching constructor (hint: specify
- hint: specify index/type/name arguments for simple parameters to avoid type ambiguities
- Spring 依赖注入(hint: specify index and/or type arguments for simple parameters to avoid type ambiguiti)
- Could not resolve URL for hyperlinked relationship using view name
- Could not resolve type alias ''
- Could not resolve type alias ''.
- Name for argument type [java.lang.String] not available, and parameter name information not found in
- Name for argument type [java.lang.String] not available, and parameter name information not found in
- Name for argument type [java.lang.String] not available, and parameter name information not found in
- could not resolve property: name of:
- Could not resolve view with name
- Could not resolve view with name 'xxxxx‘
- Could not resolve type alias 'TableFancy'.
- Could not resolve type alias 'DepartmentResultMap'.
- android活动的声明周期
- Linux 增加归档日志删除脚本
- <Oracle优化新常态> 前半生
- gensim Word2vec
- sdut 数据结构实验之队列一:排队买饭
- Could not resolve matching constructor (hint: specify index/type/name arguments for simple parameter
- information_schema中Innodb相关表用于分析sql查询锁的使用情况介绍
- CAD看图软件如何才好用
- Java 同步单例设计模式
- php常用类之curl请求
- Python词云图
- 开博记录成长之路
- 28muduo_net库源码分析(四)
- BZOJ4568: [Scoi2016]幸运数字