1

在我的 Netbeans 中,在干净并成功构建之后,运行我的程序时会出现以下消息:

SEVERE: Injection on a method requires a void return type
 symbol: javax.xml.ws.WebServiceRef
 location: public com.microsoft.schemas.sharepoint.soap.directory.GetUserInfoResponse$GetUserInfoResult pt.marinha.ditic.dss.NewWebServiceFromWSDL.getUserInfo(java.lang.String)
SEVERE: Injection on a method requires a void return type
 symbol: javax.xml.ws.WebServiceRef
 location: public com.microsoft.schemas.sharepoint.soap.directory.GetUserInfoResponse$GetUserInfoResult pt.marinha.ditic.dss.NewWebServiceFromWSDL.getUserInfo(java.lang.String)
SEVERE: Annotations processing failed for file:/C:/Users/m9351234/Documents/NetBeansProjects/SharePointWS/SharePointWS-war/build/web/
INFO: WS00018: Webservice Endpoint deployed

INFO: WEB0671: Loading application [SharePointWS-war] at [/SharePointWS-war]
INFO: SharePointWS-war was successfully deployed in 1.480 milliseconds.

这意味着什么?

我不知道如何处理 Java 中的用户组方法。

4

1 回答 1

2

根据错误消息,您似乎正在尝试使用一些依赖注入框架,该框架仅支持对具有 void 返回类型的方法进行成员注入,而您的方法正在返回一个对象实例。

于 2013-02-18T14:33:11.417 回答