Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 未在Websphere application server中调用Spring boot addInterceptors_Java_Spring_Websphere - Fatal编程技术网

Java 未在Websphere application server中调用Spring boot addInterceptors

Java 未在Websphere application server中调用Spring boot addInterceptors,java,spring,websphere,Java,Spring,Websphere,我有一个使用SpringWS的SpringBoot应用程序。在WsConfigurerAdapter内部,我覆盖addInterceptors以添加日志记录/身份验证/验证等 @Configuration @EnableCaching @EnableWs public class WebServiceConfig extends WsConfigurerAdapter { ... @Override public void addInterceptors(List&l

我有一个使用SpringWS的SpringBoot应用程序。在WsConfigurerAdapter内部,我覆盖addInterceptors以添加日志记录/身份验证/验证等

@Configuration
@EnableCaching
@EnableWs
public class WebServiceConfig extends WsConfigurerAdapter {

    ...

    @Override
    public void addInterceptors(List<EndpointInterceptor> interceptors) {
        EnvironmentSettings environment = getEnvironmentSettings();

        interceptors.add(getLogSetupInterceptor());
        interceptors.add(getAuthenticationInterceptor());
        interceptors.add(getServerLoggingInterceptor());
        interceptors.add(getAuthorizationInterceptor());
        ServerPayloadValidatingInterceptor validatingInterceptor = new ServerPayloadValidatingInterceptor();
        validatingInterceptor.setValidateRequest(environment.isValidateSoapRequest());
        validatingInterceptor.setValidateResponse(environment.isValidateSoapResponse());
        validatingInterceptor.setXsdSchema( xsdSchema());
        interceptors.add(validatingInterceptor);
    }
}

我知道我做错了什么。原来我在/*的WebServiceConfig和web.xml中都创建了一个servlet映射。

我发现我做错了什么。原来我在我的WebServiceConfig和web.xml中都在/*处创建了一个servlet映射

@SpringBootApplication
public class Application extends SpringBootServletInitializer  {

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(Application.class);
    }


    public static void main(String[] args) {

        SpringApplication.run(Application.class, args);

    }

}