Home  >  Article  >  Java  >  How to solve the problem that the port is always occupied after springboot is configured with SSL?

How to solve the problem that the port is always occupied after springboot is configured with SSL?

PHPz
PHPzforward
2023-05-18 08:49:051113browse

After configuring ssl in springboot, the port is always occupied when it starts up

srpingboot configures SSL and it keeps saying that the password is incorrect and the port is occupied

This is what I wrote before

How to solve the problem that the port is always occupied after springboot is configured with SSL?

Then run and report an error

How to solve the problem that the port is always occupied after springboot is configured with SSL?

How to solve the problem that the port is always occupied after springboot is configured with SSL?

How to solve it is

How to solve the problem that the port is always occupied after springboot is configured with SSL?

Put the file in the root directory

Then write like this to solve the problem

// An highlighted blo
#端口号
server.port=8089
#SSL配置
server.ssl.key-store=2503725_xcx.goodhosp.com.pfx
server.ssl.key-store-password=你的密码
server.ssl.keyStoreType=PKCS12

The springboot port is occupied. One way to solve it

When we start the backend, we sometimes encounter The problem of the port being occupied (), as shown in the figure:

Web server failed to start. Port 8888 was already in use.

How to solve the problem that the port is always occupied after springboot is configured with SSL?

Solution steps

1. Open the cmd window

2. Enter the command: netstat -ano to check the port number

3. Find the port number of 8888 and use taskkill /F /pid PID to kill the process

How to solve the problem that the port is always occupied after springboot is configured with SSL?

Restart the backend after the operation to solve the problem

The above is the detailed content of How to solve the problem that the port is always occupied after springboot is configured with SSL?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:yisu.com. If there is any infringement, please contact admin@php.cn delete