Error creating bean with name 'userMapper'
时间: 2023-08-23 17:17:36 浏览: 92
根据提供的引用内容,问题的原因是在使用Mybatis Generator自动生成代码时,产生了重复的代码。具体来说,在*mapper.xml文件中有两段同名的selectByExampleWithRowbounds。\[1\]解决这个问题的方法是将mysql-connector-java的版本从5.1.41升级到6.0.6。\[2\]原来的依赖是<dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>5.1.41</version> </dependency>。\[3\]
#### 引用[.reference_title]
- *1* [Error creating bean with name 'UserMapper' defined in file异常处理](https://blog.csdn.net/qq_39595349/article/details/103991798)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* *3* [UnsatisfiedDependencyException: Error creating bean with name 'userMapper' defined解决办法](https://blog.csdn.net/qq_41870790/article/details/102989523)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down1,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文