Performance: application.properties structure
MEDIUM IMPACT
This affects application startup time and configuration loading speed.
# Server settings server.port=8080 # Database settings spring.datasource.url=jdbc:mysql://localhost:3306/db spring.datasource.username=root spring.datasource.password=root # Logging levels logging.level.root=INFO logging.level.org.springframework=WARN
server.port=8080 spring.datasource.url=jdbc:mysql://localhost:3306/db spring.datasource.username=root spring.datasource.password=root logging.level.root=DEBUG logging.level.org.springframework=TRACE # many unrelated properties mixed in one file without grouping or comments
| Pattern | File Size | Parsing Time | Startup Delay | Verdict |
|---|---|---|---|---|
| Large unorganized properties file | 50KB+ | 50-100ms | 50-100ms | [X] Bad |
| Small, well-structured properties file | 5-10KB | 10-20ms | 10-20ms | [OK] Good |