Setting up SSL security in spring boot 2.0.3

纵饮孤独 提交于 2021-02-19 07:39:29

问题


In earlier spring boot, the configuration for setting up SSL security had to be done on application.properties by mentioning

server.port=8443
security.require-ssl=true
server.ssl.key-store=classpath:shq.jks
server.ssl.key-store-password=******
server.ssl.key-password=******

Would the same work on spring boot 2.0.3

If not what has to be changed.


回答1:


The answer for your question is YES.

It is same for Spring boot 2.0.x versions also.

you can refer below to cross verify the same.

Enable HTTPS with self-signed certificate in Spring Boot 2.0



来源:https://stackoverflow.com/questions/51892834/setting-up-ssl-security-in-spring-boot-2-0-3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!