0

Currently I use payara-micro-4.1.2.174 and microprofile-config-api.version 1.2.1 and injected follow:

but always get the http Port and not the https port.

"@Inject @ConfigProperty(name="payara.instance.https.port") int httpsPort;"

Why am I getting the http port and not the https port?

grizzthedj
  • 7,131
  • 16
  • 42
  • 62

1 Answers1

1

Payara Micro does not start an SSL port by default, you need to specify it on the command line with --sslport. Auto binding is also supported with the --autobindssl option.

Once the SSL port is present, then the @ConfigProperty injection should work, if not, then that would be a bug to be raised on GitHub.

Mike
  • 4,852
  • 1
  • 29
  • 48