Günter Platzer
Günter Platzer

Reputation: 1

Payara Micro ConfigProperty "payara.instance.https.port" not working correctly

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?

Upvotes: 0

Views: 444

Answers (1)

Mike
Mike

Reputation: 4963

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.

Upvotes: 1

Related Questions