问题:The alias ‘Product‘ is already mapped to the value ‘category.Product‘
1、运行报错的截图:
2、解决方法:
①查看mybatis-config.xml文件是否已经对Product注解,如图所示,将红色框内的代码注释后保存即可:
②根据其它博客,目前的解决方法是使用mybatis-spring 2.0.0或2.0.2-SNAPSHOT。
...
原创
2020-07-30 20:40:29 ·
2287 阅读 ·
0 评论