根据报错提示,错误发生在第27行第13列,即@Mappings注解中的source属性中找不到名为signupType的参数。这个错误可能是因为EnableUserResp类中没有名为signupType的字段或者getter方法。

请检查EnableUserResp类中是否包含名为signupType的字段或者getter方法。如果没有,请确保正确地引入了相关类,并在EnableUserResp类中添加相应的字段和getter方法。

另外,还需要确保EnableUserResp类所在的包已经被正确地导入到Converter2AcTokenDTO类中。

如果确认以上步骤都正确,但仍然报错,请提供EnableUserResp类的代码以便进一步排查问题。

使用springboot开发使用mapstruct进行bean之间的转换报错提示:2713java Method has no source parameter named signupType Method source parameters are resp tokenType下面是我写的代码:import comcryptoquiltapiuserresponseEnableUserResp

原文地址: http://www.cveoy.top/t/topic/igeT 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录