1 未能加载文件或程序集 或它的某一个依赖项。系统找不到指定的文件。
[ConfigurationException:
- The error occurred while loading SqlMap.
- initialize type alias
- The error occurred in <sqlMap embedded="CdtDistribution.Model.Maps.Fxz.xml, CdtDistribution.Model" xmlns="http://ibatis.apache.org/dataMapper" />.
- Check the DG_URCM.Model.Fxz, DG_URCM.Model.]
问题的解决办法
拷过来的XML文件的命名空间没有改过来
2 Can't create component 'wbzService' as it has dependencies to be satisfied.
wbzService is waiting for the following dependencies:
Services:
- CdtDistribution.Dao.WBZDao which was registered but is also waiting for dependencies.
wbzDao is waiting for the following dependencies:
Services:
- IBatisNet.DataMapper.SqlMapper which was not registered.
解决的办法
private ISqlMapper sqlmap;
public WBZDao(SqlMapper sqlmap)
{
this.sqlmap = sqlmap;
}
改成 private ISqlMapper sqlmap;
public WBZDao( ISqlMapper sqlmap)
{
this.sqlmap = sqlmap;
}
一个字母的问题
3
- The error occurred while loading SqlMap.
- apply inline parameterMap
- The error occurred in <sqlMap embedded="CdtDistribution.Model.Maps.Wbz.xml,CdtDistribution.Model" xmlns="http://ibatis.apache.org/dataMapper" />.
- Check the FindCount.
同上 注意大小写问题
4 This SQL map already contains a MappedStatement named FindCount
2个不同的XML文件难道也不可以有相同的名字?