{"action":"created","issue":{"url":"https://api.github.com/repos/mapstruct/mapstruct/issues/593","labels_url":"https://api.github.com/repos/mapstruct/mapstruct/issues/593/labels{/name}","comments_url":"https://api.github.com/repos/mapstruct/mapstruct/issues/593/comments","events_url":"https://api.github.com/repos/mapstruct/mapstruct/issues/593/events","html_url":"https://github.com/mapstruct/mapstruct/issues/593","id":93088841,"number":593,"title":"@Mapper(componentModel = \"spring\") not working","user":{"login":"reylibutan","id":8364264,"avatar_url":"https://avatars.githubusercontent.com/u/8364264?v=3","gravatar_id":"","url":"https://api.github.com/users/reylibutan","html_url":"https://github.com/reylibutan","followers_url":"https://api.github.com/users/reylibutan/followers","following_url":"https://api.github.com/users/reylibutan/following{/other_user}","gists_url":"https://api.github.com/users/reylibutan/gists{/gist_id}","starred_url":"https://api.github.com/users/reylibutan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reylibutan/subscriptions","organizations_url":"https://api.github.com/users/reylibutan/orgs","repos_url":"https://api.github.com/users/reylibutan/repos","events_url":"https://api.github.com/users/reylibutan/events{/privacy}","received_events_url":"https://api.github.com/users/reylibutan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-05T07:51:09Z","updated_at":"2015-07-05T15:49:13Z","closed_at":null,"body":"I have a mapper defined like this\r\n\r\n```java\r\n@Mapper(componentModel = \"spring\")\r\npublic interface UserMapper {\r\n    //code here\r\n}\r\n```\r\n\r\nI am getting it like this\r\n\r\n```java\r\n@Autowired\r\nprivate UserMapper userMapper;\r\n```\r\n\r\nBut I get this exception\r\n`No qualifying bean of type`\r\n\r\nI don't know if this should work as is or do I need to do some more config somewhere?\r\nI also tried, adding\r\n\r\n```xml\r\n<option>\r\n    <mapstruct.defaultComponentModel>spring</mapstruct.defaultComponentModel>\r\n</option>\r\n```"},"comment":{"url":"https://api.github.com/repos/mapstruct/mapstruct/issues/comments/118634807","html_url":"https://github.com/mapstruct/mapstruct/issues/593#issuecomment-118634807","issue_url":"https://api.github.com/repos/mapstruct/mapstruct/issues/593","id":118634807,"user":{"login":"reylibutan","id":8364264,"avatar_url":"https://avatars.githubusercontent.com/u/8364264?v=3","gravatar_id":"","url":"https://api.github.com/users/reylibutan","html_url":"https://github.com/reylibutan","followers_url":"https://api.github.com/users/reylibutan/followers","following_url":"https://api.github.com/users/reylibutan/following{/other_user}","gists_url":"https://api.github.com/users/reylibutan/gists{/gist_id}","starred_url":"https://api.github.com/users/reylibutan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reylibutan/subscriptions","organizations_url":"https://api.github.com/users/reylibutan/orgs","repos_url":"https://api.github.com/users/reylibutan/repos","events_url":"https://api.github.com/users/reylibutan/events{/privacy}","received_events_url":"https://api.github.com/users/reylibutan/received_events","type":"User","site_admin":false},"created_at":"2015-07-05T15:49:13Z","updated_at":"2015-07-05T15:49:13Z","body":"Another thing overlooked on my end. I did not re-generated mapper imeplementations after adding so it was still using the previously generated implementations.\r\n\r\nTo others who are experiencing this, just make sure to regenerate mapper implementations after putting `componentModel`.\r\n\r\n```java\r\n@Mapper(componentModel = \"spring\")\r\n```"}}