Caused by: java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/sqlMap'. Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMap/select'. Cause: com.ibatis.sqlmap.client.SqlMapException: There is no result map named FunDocument.funDocument in this SqlMap.
错误的配置文件如下
<sqlMap namespace="FunDocument">
<typeAlias alias="funDocument" type="com.yc.ycportal.blockimp.domain.FunDocument"/>
<select id="selectFunDocumentBy" resultMap="funDocument" parameterClass="map">
select * from fun_document where doc_id=#doc_id#
</select>
原来是没有引入ResultMap,所以不能用resultMap,只能改成resultClass="funDocument",平时引入了resultMap如下
<sqlMap namespace="ExtClass">
<typeAlias alias="extclass" type="com.yc.ycportal.blockimp.domain.ExtClass"/>
<resultMap id="extclassResult" class="extclass">
<result property="blockid" column="block_id"/>
<result property="etitle" column="etitle"/>
<result property="evm" column="evm"/>
<result property="edes" column="edes"/>
<result property="eurl" column="eurl"/>
<result property="height" column="height"/>
<result property="width" column="width"/>
<result property="border" column="border"/>
<result property="style" column="style"/>
<result property="scrolling" column="scrolling"/>
<result property="singlogin" column="singlogin"/>
</resultMap>
<select id="getExtClassBy" resultMap="extclassResult">
select block_id,etitle,evm,edes,eurl,height,width,border,style,scrolling,singlogin from yc_extclass where block_id=#value#
</select>
分享到:
相关推荐
之前一直找原因,最后知道了解决方法,具体请下载源码查看。特别是用到throw的事务中
NULL 博文链接:https://elfasd.iteye.com/blog/1908001
HTTP Status 404 - There is no Action mapped for namespace and action name BackMemberGroupAudit..doc
Show Message When There is No Disk in a Drive
今天小编就为大家分享一篇关于Mybatis单个参数的if判断报异常There is no getter for property named 'xxx' in 'class java.lang.Integer'的解决方案,小编觉得内容挺不错的,现在分享给大家,具有很好的参考价值,...
前几天在网上下载一个struts2的helloword的例子,那个作者也真够缺德的,搞个错误的程序,害得我查了一天的程序错误。 最后发现竟然是struts.xml被写成啦sturts.xml。 碰见这样的问题先鄙视下提供例子的作者, ...
我选择SAP CAP项目的db文件夹,右键选择build时,遇到如下... Can not create service instance ‘Products-Products-db-hdi-container8HPfzrS/PBqVvnsD’: There is no database available. Ensure that you have a
其中一个问题是报but there is no HDFS_NAMENODE_USER defined. Aborting operation. Starting datanodes 直接解决 在Hadoop安装目录下找到sbin文件夹 在里面修改四个文件 1、对于start-dfs.sh和stop-dfs.sh文件,...
Visual Studio打开Qt项目时“there's no Qt version assigned to this project for platform win32”问题的解决方法1
解决docker报错There are no more lookback devices available
主要介绍了使用Mybatis遇到的there is no getter异常,小编觉得挺不错的,现在分享给大家,也给大家做个参考。一起跟随小编过来看看吧
there is no file description
含听力Unit 5 There is a big bed Part B第二课时课课练及答案【精选.doc
If there is no PK, state so. Fully justify your answer. 2. For each table, indicate the Alternate Key(s) (AKs). If there is no AK, state so. Fully justify your answer. 3. For each table, identify ...
详细介绍了在ubuntu系统的电脑主机上安装驱动以及安装CUDA的过程,并且可以检验是否安装成功。
I don’t believe that there is any one recipe for success. Instead, I believe success is the result of a combination of a lot of different factors - and not all of them are needed for success. The ...
Convert string to numeric value of type _Tp and store results. NB: This is specialized for all required types, there is no generic definition.
在使用sublime下载扩展包的过程中,通过ctrl+shift+p打开包管理菜单界面,输入install 选中Install Package并回车,出现There are no packages available for installation的提示,导致安装插件出现问题,解决方案...
解决vivado2017.1安装中问题
本来用自带的SDK,但是好像读取数据的时候有问题,提示there is no status packet,而且暂时不知道什么问题。 也不想看它的源代码,而且我用的功能较少,所以自己写发数据的。