Skip to content

Commit 532c179

Browse files
committed
feat(config): add application properties for different environments
1 parent 08b774f commit 532c179

File tree

3 files changed

+45
-0
lines changed

3 files changed

+45
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Dev profile for AWS Lambda deployment
2+
server.servlet.context-path=
3+
4+
# Logging for production
5+
logging.level.com.example.demo=INFO
6+
logging.level.root=WARN
7+
logging.pattern.console=%d{yyyy-MM-dd HH:mm:ss} - %msg%n
8+
9+
# Error handling for production
10+
server.error.include-message=always
11+
server.error.include-binding-errors=never
12+
server.error.include-stacktrace=never
13+
server.error.include-exception=false
14+
15+
# Disable static resources for Lambda
16+
spring.web.resources.add-mappings=false
17+
18+
# Jackson configuration
19+
spring.jackson.serialization.indent-output=false
20+
spring.jackson.default-property-inclusion=NON_NULL
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Local development profile
2+
server.port=8080
3+
server.servlet.context-path=
4+
5+
# Logging for development
6+
logging.level.com.example.demo=DEBUG
7+
logging.level.root=INFO
8+
logging.pattern.console=%d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %logger{36} - %msg%n
9+
10+
# Error handling for development
11+
server.error.include-message=always
12+
server.error.include-binding-errors=always
13+
server.error.include-stacktrace=always
14+
server.error.include-exception=true
15+
16+
# Enable detailed error responses
17+
spring.web.resources.add-mappings=true
18+
19+
# Jackson configuration for pretty JSON
20+
spring.jackson.serialization.indent-output=true
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
spring.application.name=demo
2+
app.version=1.0.0
3+
4+
# Default profile
5+
spring.profiles.active=local

0 commit comments

Comments
 (0)