强制使用https而不是http与spring-ws
问题描述:
当客户端尝试使用spring-ws连接到服务器时,如何强制http连接使用https?我见过一些使用WebSecurityConfigurerAdapter的例子,但是基于注解(没有XML配置文件存在)的spring-ws最好的方法是什么?强制使用https而不是http与spring-ws
答
其实我最终使用Spring EndpointInterceptors来实现这一点。这里是我提到的一个例子:http://spring-webservice-2-step-by-step.blogspot.com/2011/12/spring-web-services-20-step-by-step.html