@Singleton public class ApplicationConfigurationService extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_PORT |
Constructor and Description |
---|
ApplicationConfigurationService(org.apache.maven.project.MavenProject mavenProject) |
Modifier and Type | Method and Description |
---|---|
String |
getServerPort()
Determines the application port by looking at the
MICRONAUT_SERVER_PORT environment variable, the
micronaut.server.port configuration property, or falls back to a default port. |
public static final String DEFAULT_PORT
@Inject public ApplicationConfigurationService(org.apache.maven.project.MavenProject mavenProject)
public String getServerPort()
MICRONAUT_SERVER_PORT
environment variable, the
micronaut.server.port
configuration property, or falls back to a default port.Copyright © 2020–2023 Micronaut. All rights reserved.