Spring boot 读书笔记一server.port.vs.spring.cloud.vault.port
The difference between these two port configurations:
server.port vs spring.cloud.vault.port
server.port=8443:
This is the port where your Spring Boot application runs
Currently set to 8443 with HTTPS/TLS enabled(NOT HTTP)
if you access http://localhost:8443, you get "bad request, requires TLS" because:
You're using HTTP protocol (http://)
But the server expects HTTPS (https://) on port 8443
spring.cloud.vault.port=8200:
This is the port where HashiCorp Vault server runs
Your application connects to Vault on this port to retrieve secrets
Completely separate from your application's port
You should access your application using:
https://localhost:8443 (HTTPS, not HTTP)
Your current configuration redirects HTTP traffic from port 8080 to HTTPS on 8443, so you could also use:
http://localhost:8080 (will redirect to HTTPS 8443)
Port Summary
8080: HTTP port (redirects to 8443)
8443: Your Spring Boot app (HTTPS)
8200: Vault server (separate service)

浙公网安备 33010602011771号