无法将表单Service转换为注释

Hid*_*rse 1 java eclipse service spring

我有一个课程,我想将其注释为服务.我做的是:

@Service
public class PaymentInTermsServiceImpl implements PaymentInTermsService {
@Override
public SOAPMessage createSOAPMessage(String clientNumber, OrderData order, String accUrl, String refUrl, String rejUrl) throws SOAPException 
{
Run Code Online (Sandbox Code Playgroud)

现在Eclipse给出了一个错误说:"无法将表单服务转换为注释"我在我的frontend-servlet.xml中有这个

<!-- Scan for annotation configured controller -->
<context:component-scan base-package="frontend.web.*"/>
Run Code Online (Sandbox Code Playgroud)

Boz*_*zho 5

您可能正在导入另一个Service不是spring @Service注释的类.FQN是org.springframework.stereotype.Service