castle的一些使用问题
来源:互联网 发布:男装网红淘宝店推荐 编辑:程序博客网 时间:2024/04/27 23:19
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文件难道也不可以有相同的名字?
- castle的一些使用问题
- 使用Castle.ActiveRecord框架的一些问题
- 使用 Castle ActiveRecord 开发发现的一些问题
- Castle 一些好的连接
- castle动态代理的使用
- Castle ActiveRecord学习实践(9):使用ActiveRecord的一些技巧
- C#.Net Castle ActiveRecord学习实践(9):使用ActiveRecord的一些技巧
- castle中时间查找的问题
- 使用CASTLE.ActiveRecord的注意事项之一:总览
- 使用CASTLE的注意事项之二:级联
- 使用Castle.ActiveRecord的注意事项三:继承
- Castle ActiveRecord中CountQuery的使用
- 使用Castle.ActiveRecord的注意事项之一:总览
- WPF使用Castle.ActiveRecord的简单示例
- 使用Castle做类的增强
- Castle.ActiveRecord 讲演的PPT以及一些感想
- 城堡问题(The Castle)
- Castle中one-to-many中遇到的问题
- Microsoft Partner Source Skill
- 什么是JSF
- 增强Eclipse ,MyEclipse 的代码提示功能(转)
- 怀疑论者的 JSF: JSF 应用程序的生命周期
- MySql 忘了密码
- castle的一些使用问题
- CodeSmith减少代码重复编写
- SQL Server 从硬盘上读取指定文件的方法
- 我的一次作业--Joseph环
- Seam - 无缝集成 JSF,第 3 部分: 用于 JSF 的 Ajax
- struts2工作流程
- linux安装软件原理,系统结构
- 来了
- APACHE 2.2.8+TOMCAT6.0.14配置负载均衡