找不到如何在Spring MVC中使用HTTPS。http://docs.spring.io/spring/docs/current/spring-framework-reference/htmlsingle/#spring-introduction
你能分享一些如何在HTTPS中使用Spring MVC的例子吗?或者,如果我想使用HTTPS,我应该使用Oauth?
谢谢
发布于 2016-04-27 00:53:19
AFAIR Spring MVC没有任何应该配置为使用HTTPS的东西,因为它们是正交的。您应该改为配置servlet容器(Tomcat、Jetty等)。
如果你正在使用Spring Security,你可以为它添加一些配置。此外,Spring Boot还为HTTPS提供了一些参数(因为Spring Boot应用程序在幕后运行Tomcat/Jetty/Undertow )。
https://stackoverflow.com/questions/36870886
复制相似问题