ssm框架mybatis使用注解连接mysql生成UUID,返回值类型错误遇到的问题

tech2022-12-20  63

报错原因:返回的类型不对 mybatis使用注解后nested exception is org.apache.ibatis.binding.BindingException: Mapper method ‘com.itheima.dao.ProductDao.save’ has an unsupported return type: class java.lang.String

使用@selectKey **

@option注解解决mybatis连接 mysql生成UUID

**

最新回复(0)