UnsatisfiedDependencyException for mapper class












0














I have created jhipster application. when I start the application I get this error:




org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'categoryServiceImpl' defined in file [/server_2/target/classes/com/test/test/service/impl/CategoryServiceImpl.class]: Unsatisfied dependency expressed through constructor parameter 1; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.test.test.service.mapper.CategoryMapper' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}




can you help me please?










share|improve this question
























  • Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.test.test.service.mapper.CategoryMapper' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}
    – luigi Soviero
    Nov 20 at 18:08










  • The exception is telling you that spring is not able in finding a bean of type com.test.test.service.mapper.CategoryMapper; this can happen for several reasons; for example spring is not scanning the right packages and so the com.test.test.service.mapper.CategoryMapper is not found and it's not possible to inject it.
    – Angelo Immediata
    Nov 20 at 18:12










  • Well the error is sort of clear. You have your categoryServiceImpl object which is being instantiated from CategoryServiceImpl, which takes a constructor parameter of type CategoryMapper, but you don't have one.
    – jbx
    Nov 20 at 18:19










  • but my code was automatically generated by jhipster
    – luigi Soviero
    Nov 20 at 18:28










  • entity, service, mapper and controller were generated by jhipster automatically by JDL through the command jhipster import-jdl ./src/model/Model.jdl
    – luigi Soviero
    Nov 20 at 18:35
















0














I have created jhipster application. when I start the application I get this error:




org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'categoryServiceImpl' defined in file [/server_2/target/classes/com/test/test/service/impl/CategoryServiceImpl.class]: Unsatisfied dependency expressed through constructor parameter 1; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.test.test.service.mapper.CategoryMapper' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}




can you help me please?










share|improve this question
























  • Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.test.test.service.mapper.CategoryMapper' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}
    – luigi Soviero
    Nov 20 at 18:08










  • The exception is telling you that spring is not able in finding a bean of type com.test.test.service.mapper.CategoryMapper; this can happen for several reasons; for example spring is not scanning the right packages and so the com.test.test.service.mapper.CategoryMapper is not found and it's not possible to inject it.
    – Angelo Immediata
    Nov 20 at 18:12










  • Well the error is sort of clear. You have your categoryServiceImpl object which is being instantiated from CategoryServiceImpl, which takes a constructor parameter of type CategoryMapper, but you don't have one.
    – jbx
    Nov 20 at 18:19










  • but my code was automatically generated by jhipster
    – luigi Soviero
    Nov 20 at 18:28










  • entity, service, mapper and controller were generated by jhipster automatically by JDL through the command jhipster import-jdl ./src/model/Model.jdl
    – luigi Soviero
    Nov 20 at 18:35














0












0








0







I have created jhipster application. when I start the application I get this error:




org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'categoryServiceImpl' defined in file [/server_2/target/classes/com/test/test/service/impl/CategoryServiceImpl.class]: Unsatisfied dependency expressed through constructor parameter 1; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.test.test.service.mapper.CategoryMapper' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}




can you help me please?










share|improve this question















I have created jhipster application. when I start the application I get this error:




org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'categoryServiceImpl' defined in file [/server_2/target/classes/com/test/test/service/impl/CategoryServiceImpl.class]: Unsatisfied dependency expressed through constructor parameter 1; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.test.test.service.mapper.CategoryMapper' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}




can you help me please?







spring jhipster mapper






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 20 at 18:08









DaFois

1,88941418




1,88941418










asked Nov 20 at 17:28









luigi Soviero

32




32












  • Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.test.test.service.mapper.CategoryMapper' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}
    – luigi Soviero
    Nov 20 at 18:08










  • The exception is telling you that spring is not able in finding a bean of type com.test.test.service.mapper.CategoryMapper; this can happen for several reasons; for example spring is not scanning the right packages and so the com.test.test.service.mapper.CategoryMapper is not found and it's not possible to inject it.
    – Angelo Immediata
    Nov 20 at 18:12










  • Well the error is sort of clear. You have your categoryServiceImpl object which is being instantiated from CategoryServiceImpl, which takes a constructor parameter of type CategoryMapper, but you don't have one.
    – jbx
    Nov 20 at 18:19










  • but my code was automatically generated by jhipster
    – luigi Soviero
    Nov 20 at 18:28










  • entity, service, mapper and controller were generated by jhipster automatically by JDL through the command jhipster import-jdl ./src/model/Model.jdl
    – luigi Soviero
    Nov 20 at 18:35


















  • Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.test.test.service.mapper.CategoryMapper' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}
    – luigi Soviero
    Nov 20 at 18:08










  • The exception is telling you that spring is not able in finding a bean of type com.test.test.service.mapper.CategoryMapper; this can happen for several reasons; for example spring is not scanning the right packages and so the com.test.test.service.mapper.CategoryMapper is not found and it's not possible to inject it.
    – Angelo Immediata
    Nov 20 at 18:12










  • Well the error is sort of clear. You have your categoryServiceImpl object which is being instantiated from CategoryServiceImpl, which takes a constructor parameter of type CategoryMapper, but you don't have one.
    – jbx
    Nov 20 at 18:19










  • but my code was automatically generated by jhipster
    – luigi Soviero
    Nov 20 at 18:28










  • entity, service, mapper and controller were generated by jhipster automatically by JDL through the command jhipster import-jdl ./src/model/Model.jdl
    – luigi Soviero
    Nov 20 at 18:35
















Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.test.test.service.mapper.CategoryMapper' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}
– luigi Soviero
Nov 20 at 18:08




Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.test.test.service.mapper.CategoryMapper' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}
– luigi Soviero
Nov 20 at 18:08












The exception is telling you that spring is not able in finding a bean of type com.test.test.service.mapper.CategoryMapper; this can happen for several reasons; for example spring is not scanning the right packages and so the com.test.test.service.mapper.CategoryMapper is not found and it's not possible to inject it.
– Angelo Immediata
Nov 20 at 18:12




The exception is telling you that spring is not able in finding a bean of type com.test.test.service.mapper.CategoryMapper; this can happen for several reasons; for example spring is not scanning the right packages and so the com.test.test.service.mapper.CategoryMapper is not found and it's not possible to inject it.
– Angelo Immediata
Nov 20 at 18:12












Well the error is sort of clear. You have your categoryServiceImpl object which is being instantiated from CategoryServiceImpl, which takes a constructor parameter of type CategoryMapper, but you don't have one.
– jbx
Nov 20 at 18:19




Well the error is sort of clear. You have your categoryServiceImpl object which is being instantiated from CategoryServiceImpl, which takes a constructor parameter of type CategoryMapper, but you don't have one.
– jbx
Nov 20 at 18:19












but my code was automatically generated by jhipster
– luigi Soviero
Nov 20 at 18:28




but my code was automatically generated by jhipster
– luigi Soviero
Nov 20 at 18:28












entity, service, mapper and controller were generated by jhipster automatically by JDL through the command jhipster import-jdl ./src/model/Model.jdl
– luigi Soviero
Nov 20 at 18:35




entity, service, mapper and controller were generated by jhipster automatically by JDL through the command jhipster import-jdl ./src/model/Model.jdl
– luigi Soviero
Nov 20 at 18:35












1 Answer
1






active

oldest

votes


















1














CategoryMapperImpl is generated at build time by mapstruct annotation processor from CategoryMapper interface that was generated by JHipster when importing your JDL file, make sure you have run mvnw or gradlew to generate it before starting your app.



See official doc about using DTOs: https://www.jhipster.tech/using-dtos/






share|improve this answer





















  • i have run mvnw and it work! ;) ;)
    – luigi Soviero
    Nov 21 at 12:18











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53398412%2funsatisfieddependencyexception-for-mapper-class%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









1














CategoryMapperImpl is generated at build time by mapstruct annotation processor from CategoryMapper interface that was generated by JHipster when importing your JDL file, make sure you have run mvnw or gradlew to generate it before starting your app.



See official doc about using DTOs: https://www.jhipster.tech/using-dtos/






share|improve this answer





















  • i have run mvnw and it work! ;) ;)
    – luigi Soviero
    Nov 21 at 12:18
















1














CategoryMapperImpl is generated at build time by mapstruct annotation processor from CategoryMapper interface that was generated by JHipster when importing your JDL file, make sure you have run mvnw or gradlew to generate it before starting your app.



See official doc about using DTOs: https://www.jhipster.tech/using-dtos/






share|improve this answer





















  • i have run mvnw and it work! ;) ;)
    – luigi Soviero
    Nov 21 at 12:18














1












1








1






CategoryMapperImpl is generated at build time by mapstruct annotation processor from CategoryMapper interface that was generated by JHipster when importing your JDL file, make sure you have run mvnw or gradlew to generate it before starting your app.



See official doc about using DTOs: https://www.jhipster.tech/using-dtos/






share|improve this answer












CategoryMapperImpl is generated at build time by mapstruct annotation processor from CategoryMapper interface that was generated by JHipster when importing your JDL file, make sure you have run mvnw or gradlew to generate it before starting your app.



See official doc about using DTOs: https://www.jhipster.tech/using-dtos/







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 20 at 19:46









Gaël Marziou

9,57222432




9,57222432












  • i have run mvnw and it work! ;) ;)
    – luigi Soviero
    Nov 21 at 12:18


















  • i have run mvnw and it work! ;) ;)
    – luigi Soviero
    Nov 21 at 12:18
















i have run mvnw and it work! ;) ;)
– luigi Soviero
Nov 21 at 12:18




i have run mvnw and it work! ;) ;)
– luigi Soviero
Nov 21 at 12:18


















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53398412%2funsatisfieddependencyexception-for-mapper-class%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Costa Masnaga

Fotorealismo

Sidney Franklin