We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import org.mapstruct.Mapper; 这个自动编译的包注入不到spring中后台报错
APPLICATION FAILED TO START
Description:
Field treeMapper in com.csdn.demo.sys.controller.RoleController required a bean of type 'com.csdn.demo.sys.mapper.TreeMapper' that could not be found.
Action:
Consider defining a bean of type 'com.csdn.demo.sys.mapper.TreeMapper' in your configuration.
The text was updated successfully, but these errors were encountered:
这个问题如何解决?
Sorry, something went wrong.
同问,我也遇到同样的问题
解决办法: 在maven环境下 先执行 mvn clean 在执行 mvn install 就可以了 (原因是:@Mapper 实体-模型映射 会在 target目录下生成一个generated-sources,里边实现了这个接口)
No branches or pull requests
import org.mapstruct.Mapper;
这个自动编译的包注入不到spring中后台报错
APPLICATION FAILED TO START
Description:
Field treeMapper in com.csdn.demo.sys.controller.RoleController required a bean of type 'com.csdn.demo.sys.mapper.TreeMapper' that could not be found.
Action:
Consider defining a bean of type 'com.csdn.demo.sys.mapper.TreeMapper' in your configuration.
The text was updated successfully, but these errors were encountered: