大佬 我按照 你 demo里面的 例子
配置后 404 找不到 对应的 wsdl
是否需要在 其他地方添加呢??
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" version="3.1">
<display-name>singleSignOn</display-name>
<filter>
<filter-name>nutz</filter-name>
<filter-class>com.gwxa.framework.servlet.FilterUtil</filter-class>
<init-param>
<param-name>modules</param-name>
<param-value>com.gwxa.framework.modules.MainModule</param-value>
</init-param>
<init-param>
<param-name>exclusions</param-name>
<param-value>/cxf/*</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>nutz</filter-name>
<url-pattern>*.do</url-pattern>
<url-pattern>*.htm</url-pattern>
<url-pattern>*.jsp</url-pattern>
<url-pattern>*.json</url-pattern>
<url-pattern>*.xml</url-pattern>
<dispatcher>REQUEST</dispatcher>
<dispatcher>FORWARD</dispatcher>
<dispatcher>INCLUDE</dispatcher>
</filter-mapping>
<welcome-file-list>
<welcome-file>/WEB-INF/index.jsp</welcome-file>
</welcome-file-list>
<error-page>
<error-code>500</error-code>
<location>/source/500.html</location>
</error-page>
<error-page>
<error-code>404</error-code>
<location>/source/404.html</location>
</error-page>
</web-app>
package com.gwxa.sso.cxf;
import org.nutz.integration.cxf.AbstractCxfModule;
import org.nutz.ioc.loader.annotation.IocBean;
import org.nutz.mvc.annotation.At;
import org.nutz.mvc.annotation.Fail;
import org.nutz.mvc.annotation.Ok;
@IocBean(create ="_init",depose = "depose")
@At("/cxf/")
public class CxfModule extends AbstractCxfModule{
public CxfModule(){
pathROOT ="/cxf/";
pkg = "com.gwxa.sso.cxf.webservice";
}
@At("/*")
@Ok("void")
@Fail("void")
public void service() throws Exception{
super.service();
}
}
package com.gwxa.framework.modules;
import org.nutz.mvc.annotation.Encoding;
import org.nutz.mvc.annotation.Fail;
import org.nutz.mvc.annotation.IocBy;
import org.nutz.mvc.annotation.Modules;
import org.nutz.mvc.annotation.SetupBy;
import org.nutz.mvc.annotation.Views;
import org.nutz.mvc.ioc.provider.ComboIocProvider;
import org.nutz.mvc.view.DefaultViewMaker;
import com.gwxa.framework.setUp.NutzSetup;
@Modules(scanPackage = true,packages={"com.gwxa.login","com.gwxa.sso","com.gwxa.oauth2"})
@IocBy(type = ComboIocProvider.class,
args = { "*org.nutz.ioc.loader.json.JsonLoader", "ioc/",
"*org.nutz.ioc.loader.annotation.AnnotationIocLoader","jedis",
"com.gwxa" ,
"*tx", // 事务拦截 aop
"*async"}) // 异步执行aop
@SetupBy(NutzSetup.class)
@Fail("http:500")
@Encoding(input = "UTF-8", output = "UTF-8")
@Views(DefaultViewMaker.class)
public class MainModule {}