IT 연구소

  • 홈
  • 태그
  • 방명록

Spring 2

JsonStringToObject

jackson-databind jackson-core import com.fasterxml.jackson.core.JsonParseException; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; public class JsonUtil { private static final Logger logger = LoggerFactory.getLogger(JsonUtil.class); public T converJsonStringToObject(String jsonS..

Spring 2019.10.16

jsonView 설정

view 설정이 있는 xml에 설정 (보통 servlet-context.xml) MappingJackson2JsonView class는 spring-webmvc-X.X.X.RELEASE.jar에서 제공 @RequestMapping("/jsonView.json") public String jsonView(HttpServletRequest request, Model model) { model.addAttribute("result", "jsonView"); return "jsonView"; } 위와 같은 방식으로 model에 담겨오면 자동으로 json으로 변경되어 클라이언트에 전달 된다. 아래와 같은 결과를 받을 수 있다.

Spring 2019.10.16
이전
1
다음
더보기
프로필사진

IT 연구소

  • 분류 전체보기
    • JAVA
    • Spring Boot
    • Spring
    • DB
      • Real MySQL
    • Linux
    • React
    • Tools
      • IntelliJ
      • Eclipse
      • Git
      • Atlassian
    • HTML5 + CSS3
    • 용어
    • 정규식
    • Apple
      • macOS
    • AWS
    • WWW

Tag

Immutable, Java, 성능최적화, java17, streamapi, 리팩토링, 자바스트림, Eclipse, BESTPRACTICE, Spring Boot, application.yml, API설계, OOP, 타입추론, 타입안전성, JPA, Generics, hibernate, 이클립스, 아키텍처,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2026/06   »
일 월 화 수 목 금 토
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

방문자수Total

  • Today :
  • Yesterday :

Copyright © AXZ Corp. All rights reserved.

티스토리툴바