Home:ALL Converter>How do I disable the http server in a micronaut application

How do I disable the http server in a micronaut application

Ask Time:2021-10-07T12:36:26         Author:I.M.MK.XLII

Json Formatter

I have a micronaut application that is supposed to run a SQS listener in one container and a regular HTTP server on the other. How do I achieve this via configuration? I can use the following app properties to enable/disable the listener:

micronaut:
  jms:
    sqs:
      enabled: true

How do I enable/disable the web server?

PS: I was able to disable the web server in spring boot with spring.main.web-application-type=NONE. But I am not able to find the relevant setting in micronaut.

Author:I.M.MK.XLII,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/69475533/how-do-i-disable-the-http-server-in-a-micronaut-application
yy