Java 如何使用keystore和trustore配置springws?

Java 如何使用keystore和trustore配置springws?,java,web-services,tomcat,spring-ws,jsse,Java,Web Services,Tomcat,Spring Ws,Jsse,在SpringWS中,我应该将这些命令放在哪里 -Djavax.net.ssl.keyStore=tomcat.keystore -Djavax.net.ssl.keyStorePassword=tomcat -Djavax.net.ssl.trustStore=tomcat.keystore -Djavax.net.ssl.trustStorePassword=tomcat -Djavax.net.debug=SSL 我是否必须将其作为参数或在某些类中指定属性。我有基于Spring WS a

在SpringWS中,我应该将这些命令放在哪里

-Djavax.net.ssl.keyStore=tomcat.keystore
-Djavax.net.ssl.keyStorePassword=tomcat
-Djavax.net.ssl.trustStore=tomcat.keystore
-Djavax.net.ssl.trustStorePassword=tomcat
-Djavax.net.debug=SSL

我是否必须将其作为参数或在某些类中指定属性。我有基于Spring WS annotation的配置。我可以在应用程序本身中配置属性。

我得到了解决方案,我可以使用

System.setproperty("-Djavax.net.debug","SSL");
或者,我可以在服务器开始运行时使用tomcat7指定这些参数。 转到eclipse->右键单击项目->单击运行配置->选择tomcat->选择参数->粘贴属性->单击应用
然后重新启动tomcat

我得到了解决方案,我可以使用

System.setproperty("-Djavax.net.debug","SSL");
或者,我可以在服务器开始运行时使用tomcat7指定这些参数。 转到eclipse->右键单击项目->单击运行配置->选择tomcat->选择参数->粘贴属性->单击应用 然后重新启动tomcat