Junior
What types of configurations do you know?
sobes.tech AI
Answer from AI
- Internal configurations: Set in the application code.
- Configurations via system properties: Passed during JVM startup (
-Dkey=value). - Configurations via environment variables: Read from the operating system environment.
- Configuration files:
- Properties (
.properties) - YAML (
.yaml,.yml) - JSON (
.json) - XML (
.xml)
- Properties (
- Configurations via annotations: Used in frameworks (e.g., Spring
@Value). - Configuration servers: Centralized storage for configurations in distributed systems (e.g., Spring Cloud Config, ZooKeeper).
- Configurations from the database: Storage of settings in database tables.