Description:
Field inservice in controller
required a bean of type Inservice 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 Inservice in your configuration.
Service的實現類上沒有標準@Service,導致Spring不能加載Bean。
public interface InService {
}
public class InvoiceImpl implements InService {
}
@Service
@Transactional
public class InvoiceImpl implements InService {
}