spring - cvc-complex-type.2.4.c: The matching wildcard is strict,

菜雞03號發表於2016-09-25
cxf整合spring,報錯資訊如下:

Multiple annotations found at this line:
- cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for 
element 'jaxws:endpoint'.
- schema_reference.4: Failed to read schema document 'http://cxf.apache.org/schema/
jaxws.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root 
element of the document is not <xsd:schema>.

是由於eclipse不識別javas.xsd造成的,解決方案如下:

如果還顯示錯誤,那麼將jaxws:endpoint標籤內容刪除後,然後儲存後,再將內容貼到beans.xml中即可。

相關文章