Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/eclipse/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 无法将表单服务转换为批注_Java_Eclipse_Spring_Service - Fatal编程技术网

Java 无法将表单服务转换为批注

Java 无法将表单服务转换为批注,java,eclipse,spring,service,Java,Eclipse,Spring,Service,我有一个类,我想将其注释为服务。我所做的是: @Service public class PaymentInTermsServiceImpl implements PaymentInTermsService { @Override public SOAPMessage createSOAPMessage(String clientNumber, OrderData order, String accUrl, String refUrl, String rejUrl) throws SOAPExc

我有一个类,我想将其注释为服务。我所做的是:

@Service
public class PaymentInTermsServiceImpl implements PaymentInTermsService {
@Override
public SOAPMessage createSOAPMessage(String clientNumber, OrderData order, String accUrl, String refUrl, String rejUrl) throws SOAPException 
{
现在Eclipse给出了一个错误:无法将表单服务转换为注释 我在前端servlet.xml中有这个

<!-- Scan for annotation configured controller -->
<context:component-scan base-package="frontend.web.*"/>

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

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

向我们展示了整个堆栈跟踪,而不仅仅是错误消息的一部分。Eclipse给出了一个错误-什么类型的错误?什么时候?在编译过程中?验证?还是在您执行程序时?向我们展示整个堆栈跟踪,而不仅仅是错误消息的一个片段。Eclipse给出了一个错误-什么类型的错误?什么时候?在编译过程中?验证?还是在你执行程序的时候?