1

我正在配置一个项目,但 spring 配置文件给出了错误,如图所示:在此处输入图像描述

我的弹簧配置 cxf.xml 是

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:jaxws="http://cxf.apache.org/jaxws"
  xsi:schemaLocation="http://www.springframework.org/schema/beans
  http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
  http://cxf.apache.org/jaxws
  http://cxf.apache.org/schemas/jaxws.xsd">

<jaxws:inInterceptors>
 <bean class="org.apache.cxf.binding.soap.saaj.SAAJInInterceptor"/>
 <bean class="org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor">
   <constructor-arg>
     <map>
       <entry key="action" value="UsernameToken"/>
       <entry key="passwordType" value="PasswordText"/>
       <entry key="passwordCallbackClass" value="com.nightingale.cxf.servlet.PWCallback"/>
     </map>
   </constructor-arg>
 </bean>
</jaxws:inInterceptors>
<jaxws:properties>
    <entry key="faultStackTraceEnabled" value="true"/>
</jaxws:properties>

4

0 回答 0