Git Product home page Git Product logo

bulletin's Introduction

Anurag's GitHub stats Harlok's wakatime stats

bulletin's People

Contributors

mtak0235 avatar

Watchers

 avatar

bulletin's Issues

open restful api 에서 string 으로 json을 받아와서 저장하게 만들어라.

  • 나 스스로를 제 3자 처럼 두번 호출하는(데이터 가져오기, 데이터 저장하기) 컨트롤러 하나 만들기
  • 외부 api를 호출해서(데이터 가져오기) 저장하는 컨트롤러 하나 만들기
  • 외부 api를 호출해서(데이터 가져오기) 나 스스로를 제 3자처럼 호출(데이터 저장하기)하는 컨트롤러 하나 만들기
  • 나 스스로를 제 3자처럼 호출해서(데이터 가져오기) 저장하는 컨트롤러 하나 만들기
  • 파이썬 알고리즘 책 구조화하기
  • curl , ifconfig 사용법 공부하기

json simple 라이브러리로 json <-> obj, parser, jsonarray 학습

com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Java 8 date/time type `java.time.LocalDateTime` not supported by default: add Module "com.fasterxml.jackson.datatype:jackson-datatype-jsr310" to enable handling

err
com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Java 8 date/time type java.time.LocalDateTime not supported by default: add Module "com.fasterxml.jackson.datatype:jackson-datatype-jsr310" to enable handling (through reference chain: seoul.bulletin.domain.entity.Posts["createdDate"])

해결
https://itpro.tistory.com/117
FasterXML/jackson-databind#3262

client에서 넘어오는 데이터 parser 만들기

  1. server에서 필요한 데이터가 정해져 있나?
    1 - 1. yes
    Q. client에서 넘겨주는 데이터는 json형태 또는 query parameter 형식 중의 하나인가?
    yes -> 데이터 타입은 http 헤더를 보면 알 수 있다. 스프링에서 지원하는 어노테이션을 사용하면 된다.
    no -> client에서 넘겨주는 데이터 타입이 무엇인지 header에 명시가 되어 있어야 한다. 그렇다면 예를 들어 save용 controller에서는 데이터 타입에 따른 파서를 모두 만들어 놓아야 하나?
    1 - 2. no
    Q. 클라이언트에서 넘어오는 데이터를 모두 저장해야 하나?
    yes ->
    Then, client에서 넘겨주는 데이터는 json형태 또는 query parameter 형식 중의 하나인가?
    yes --> json 구조가 계속 바뀌면 데이터 클래스에 값을 매필해주는 스프링 매퍼를 못쓴다. 그렇다면 그냥 string으로 저장할 수 밖에 없는데 그러면 나중에 꺼내 쓰는 시점(필요한 데이터가 생긴 시점)에 파싱 프로세스가 돌아가 map 형식으로 하는데 그건 비효율적인 것 같다.
    no -->위와 마찬가지로 string으로 저장해놨다가 필요할 때 map 형식으로 파싱해 넣어야 한다.
    no -> ?? 필요한 데이터도 없고 다 저장하지도 않으면 깍두기 컨트롤러다.
    1 - 3. well
    필요한 데이터는 있는데 넘겨준 데이터를(안필요한 놈들까지) 모두 저장하고 싶다.
    Q. client에서 넘겨주는 데이터는 json형태 또는 query parameter 형식 중의 하나인가?
    yes -> 스프링 mapper는 못쓰고

json simple import gradle 못찾음

해결 방법: xml양식 보고 만들어서 씀

	implementation group: 'com.googlecode.json-simple', name: 'json-simple', version: '1.1.1'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.