Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to configure https certificate in springboot

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article will explain in detail how to configure the https certificate in springboot. The content of the article is of high quality, so the editor will share it for you as a reference. I hope you will have some understanding of the relevant knowledge after reading this article.

1. The purchase page looks like this

Choose in order

Then go to purchase successfully, we will see that the certificate has not been issued, we need to apply.

Usually wait half an hour for the audit to be successful, and then download the tomcat certificate. We unzip the certificate package and see the following information

Configure application.properties file [it seems that there is no need to add classpath, it seems to put an absolute address]

Server.port=443server.ssl.key-store=classpath:cert-1541418663536_iunix.vip.pfxserver.ssl.key-store-password=krdg77SDserver.ssl.keyStoreType=PKCS12

The password value is in the text file in the corresponding certificate package. The list.html code in the figure above is as follows

复制代码

Insert title here user list-

Create an Controller and an entity class, the code is as follows

复制代码

/ * * @ Auther: Tang XiaoBai * @ Date: 2018-11-7 20:24 * @ Description: * / @ Controllerpublic class UserController {@ RequestMapping ("/ list") public String listUser (Model model) {List userList = new ArrayList (); for (int I = 0; I

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report