beans-Context.xml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <beans xmlns="http://www.springframework.org/schema/beans"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xmlns:context="http://www.springframework.org/schema/context"
  5. xmlns:tx="http://www.springframework.org/schema/tx"
  6. xmlns:aop="http://www.springframework.org/schema/aop"
  7. xmlns:jaxws="http://cxf.apache.org/jaxws"
  8. xsi:schemaLocation="
  9. http://www.springframework.org/schema/beans
  10. http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
  11. http://www.springframework.org/schema/context
  12. http://www.springframework.org/schema/context/spring-context-3.0.xsd
  13. http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
  14. http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd
  15. http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd">
  16. <import resource="classpath:META-INF/cxf/cxf.xml"/>
  17. <import resource="classpath:META-INF/cxf/cxf-servlet.xml"/>
  18. <context:annotation-config/>
  19. <!-- <aop:aspectj-autoproxy proxy-target-class="true"></aop:aspectj-autoproxy> 强制使用CGLIB -->
  20. <aop:aspectj-autoproxy></aop:aspectj-autoproxy>
  21. <context:component-scan base-package="com.cxfws">
  22. <context:exclude-filter type="annotation" expression="org.springframework.stereotype.Controller" />
  23. </context:component-scan>
  24. <!--
  25. <jaxws:endpoint id="cxfws" implementor="com.cxfws.ws.CxfwsImpl" address="/cxfws"/>
  26. -->
  27. <!-- WebService
  28. <bean class="org.springframework.remoting.jaxws.SimpleJaxWsServiceExporter">
  29. <property name="baseAddress"
  30. value="http://${webService.url}:${webService.port}/" />
  31. </bean>
  32. -->
  33. </beans>