There is already a statement named CommentDomain_base_insert in this SqlMap

如果有2个CommentDomain会报如下错误:

java.lang.RuntimeException: Error occurred.  Cause: com.ibatis.common.xml.NodeletException: Error parsing XML.  Cause: 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/insert'.  Cause: com.ibatis.sqlmap.client.SqlMapException: There is already a statement named CommentDomain_base_insert in this SqlMap.

系统启动的时候,框架会根据domain自动生成sqlmap,是根据domain 的名称来设置的

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容