hellokoding / hellokoding-courses

HelloKoding provides practical coding guides series of Spring Boot, Java, Algorithms, and other topics on software engineering

Home Page:https://hellokoding.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Required bean of type ProductMapper

lc2a opened this issue · comments

commented

Hello :)

I'm getting below error when run the spring boot and \target\generated-sources folder is empty.
Kindly advise. Thanks in advance

***************************
APPLICATION FAILED TO START
***************************

Description:

Parameter 1 of constructor in com.hellokoding.springboot.restful.product.ProductAPI required a bean of type 'com.hellokoding.springboot.restful.product.ProductMapper' that could not be found.


Action:

Consider defining a bean of type 'com.hellokoding.springboot.restful.product.ProductMapper' in your configuration.

I also have the same error. Please do you know how can I solved it?


APPLICATION FAILED TO START


Description:

Parameter 2 of constructor in com.developerbm.serviceimpl.AdminServiceImpl required a bean of type 'com.developerbm.dto.AdminMapper' that could not be found.

The injection point has the following annotations:
- @org.springframework.beans.factory.annotation.Autowired(required=true)

Action:

Consider defining a bean of type 'com.developerbm.dto.AdminMapper' in your configuration.