Skip to content

Commit

Permalink
Merge branch 'develop' into deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
seohyun-lee committed Aug 17, 2024
2 parents 128685d + ef7ca6d commit 3b5bc9f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ dependencies {
implementation 'org.json:json:20231013' //JsonObject 사용 관련
implementation 'org.springframework.boot:spring-boot-starter-mail:3.2.2' //mail
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf:3.1.2' //thymeleaf
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.17.1' //Jackson - ObjectMapper 시간 직렬화 관련
}

tasks.named('test') {
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/sws/songpin/global/config/AppConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.converter.json.Jackson2ObjectMapperBuilder;
import org.springframework.web.client.RestTemplate;

@Configuration
Expand All @@ -19,6 +19,7 @@ public RestTemplate restTemplate() {
public ObjectMapper objectMapper() {
ObjectMapper objectMapper = new ObjectMapper();
objectMapper.configure(SerializationFeature.ORDER_MAP_ENTRIES_BY_KEYS, true);
objectMapper.registerModule(new JavaTimeModule());
return objectMapper;
}
}

0 comments on commit 3b5bc9f

Please sign in to comment.