본문 바로가기 메뉴 바로가기

donnert.net

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

donnert.net

검색하기 폼
  • 분류 전체보기 (87)
    • 개발 (81)
      • Java, Kotlin (34)
      • Linux, Server (22)
      • DB (7)
      • JavaScript, TypeScript (6)
      • nodejs (1)
    • 맛집 (5)
    • iPhone (0)
    • 일기장 (0)
  • 방명록

resttemplate (2)
RestTemplate 사용 중 Connection refused: connect 오류 발생

평소처럼 restTemplate를 사용하다가 이상하게 연동이 안되는 상황 발생 (서버는 npm의 json-server 사용) fun getTest() { val body = restTemplate.getForEntity("$host/test", String::class.java).body logger.info {"body : $body"} } o.s.web.client.RestTemplate : HTTP GET http://localhost:3020/test o.s.web.client.RestTemplate : Accept=[text/plain, application/json, application/*+json, */*] o.s.s.s.TaskUtils$LoggingErrorHandler : Unexpe..

개발/Java, Kotlin 2023. 2. 21. 11:06
RestTemplate 한글 깨짐

FCM 연동 중 한글 깨짐 현상 발생 시 다음과 같이 메세지 컨버터의 인코딩을 변경한다. Kotlin val restTemplate = RestTemplate().apply { messageConverters.forEach { if(it is StringHttpMessageConverter) { it.defaultCharset = Charset.forName("UTF-8") } } }

개발/Java, Kotlin 2019. 11. 19. 15:33
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
  • 딴짓-커뮤니티 인기 글 모음
  • 쉽팡-직구 배송 조회(관세청/알리)
TAG
  • 도커
  • 톰캣
  • Shell
  • Build
  • grant
  • Kotlin
  • Profile
  • Access
  • boot
  • mybatis
  • oracle
  • ls
  • maven
  • vrapper
  • Tomcat
  • 코틀린
  • 합정
  • properties
  • vim
  • Database
  • Eclipse
  • Linux
  • Spring
  • java
  • vi
  • IntelliJ
  • docker
  • resttemplate
  • jQuery
  • 맛집
more
«   2025/05   »
일 월 화 수 목 금 토
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바