SpringBoot启动端口配置

###server
server:
  port: 443  ###端口配置,如果是https,80端口要配置成433
  address: 0.0.0.0 ###服务地址,0.0.0.0表示内外网都可以访问,如果不配置Adress,端口可能不会生效
  servlet:
    context-path: / ###url根路径
  tomcat:
    uri-encoding: UTF-8  ###编码
  ssl:###https配置
    protocol: TLS  
    key-store-password: password
    key-store: classpath:XXXXXX.work.pfx
    key-store-type: PKCS12

你可能感兴趣的:(Java,https,springboot)