본문 바로가기

월간

2020.01 / [월간] 공부할 필요성을 느낀 것 & 읽고싶은것

DAY 06 

IP range

https://confluence.atlassian.com/jirakb/error-connecting-to-database-fatal-no-pg_hba-conf-entry-for-host-x-x-x-x-user-jiradbuser-database-jiradb-ssl-off-950801726.html

 

Error Connecting to database FATAL : no pg_hba.conf entry for host"x.x.x.x", user"jiradbuser", database"jiradb", SSL off - Atlas

Error Connecting to database FATAL : no pg_hba.conf entry for host"x.x.x.x", user"jiradbuser", database"jiradb", SSL off

confluence.atlassian.com

https://www.postgresql.org/docs/devel/auth-pg-hba-conf.html

 

PostgreSQL: Documentation: devel: 20.1. The pg_hba.conf File

20.1. The pg_hba.conf File Client authentication is controlled by a configuration file, which traditionally is named pg_hba.conf and is stored in the database cluster's data directory. (HBA stands for host-based authentication.) A default pg_hba.conf file

www.postgresql.org

https://studyforus.tistory.com/137

불러오는 중입니다...

@Autowired 애노테이션

https://galid1.tistory.com/512

 

Spring - @Autowired 분석!

Spring @Autowired어노테이션이란 @Autowired에 대한 분석이라기에는 얕은 지식을 가지고 @Autowired 어노테이션에 관해서 포스팅을 해보겠습니다. 1. Autowired란? @Autowired 어노테이션은 이름을 보면 알 수 있..

galid1.tistory.com

 

 

 

DAY 11

static vs final

https://stackoverflow.com/questions/13772827/difference-between-static-and-final

 

Difference between Static and final?

I'm always confused between static and final keywords in java. How are they different ?

stackoverflow.com

 

 

DAY 16

The Joel Test: 12 Steps to Better Code – Joel on Software

https://www.joelonsoftware.com/2000/08/09/the-joel-test-12-steps-to-better-code/

 

The Joel Test: 12 Steps to Better Code

Have you ever heard of SEMA? It’s a fairly esoteric system for measuring how good a software team is. No, wait! Don’t follow that link! It will take you about six years just to understa…

www.joelonsoftware.com

 

쉘스크립트 기초 https://www.shellscript.sh/

 

Shell Scripting Tutorial

This tutorial is written to help people understand some of the basics of shell script programming (aka shell scripting), and hopefully to introduce some of the possibilities of simple but powerful programming available under the Bourne shell. As such, it h

www.shellscript.sh

https://kangsecu.tistory.com/54

 

Linux Shell Script 기초

이번에는 linux에서 사용하는 bahs쉘의 간단한 shell script프로그래밍에 대하여 소개 하겠습니다. shell script에 대하여 간단한 소개를 하기에 앞서, bash쉘에 대하여 간단히 소개를 하겠습니다. 1. Shell의 정..

kangsecu.tistory.com

 

 

 

DAY 30

Map과 HashMap의 차이?

Postgres 에서 jsonb 타입을 사용하기 위해 

<!-- https://mvnrepository.com/artifact/com.vladmihalcea/hibernate-types-52 -->
        <dependency>
            <groupId>com.vladmihalcea</groupId>
            <artifactId>hibernate-types-52</artifactId>
            <version>2.9.3</version>
        </dependency>

dependency 를 추가해야했는데, 

package com.회사.lab.tour.geolocation.model;

import com.couchbase.client.java.repository.annotation.Field;
import com.fasterxml.jackson.annotation.JsonView;
import com.interpark.lab.tour.geolocation.config.ViewJson;
import com.vladmihalcea.hibernate.type.json.JsonBinaryType;
import lombok.Data;
import org.hibernate.annotations.Type;
import org.hibernate.annotations.TypeDef;
import org.hibernate.annotations.TypeDefs;
import org.json.JSONObject;
import org.locationtech.jts.geom.Geometry;

import javax.persistence.*;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

@Data
@Entity
@Table(name = "json_b_test_region_100_007")
@TypeDefs({
        @TypeDef(name = "jsonb", typeClass = JsonBinaryType.class)
})
public class ExpediaRegionUnion {

    @Id @GeneratedValue(strategy = GenerationType.AUTO)
    private String region_id;

    @Field("region_name")
    @JsonView({ViewJson.Admin.class})
    private String region_name;

    @Field("region_type")
    private String region_type;


    @Type(type = "jsonb")
    @Column(columnDefinition = "jsonb")
    private HashMap jsonb;

    @Type(type = "jsonb")
    @Column(columnDefinition = "jsonb")
    private HashMap es;

    @Field("polygon")
    private Geometry polygon;

    @Field("created_at")
    private Date createdAt;

    @Field("updated_at")
    private Date updatedAt;
}

위와같은 설정에서 HashMap Map으로 작성하니 실행이 되지 않았다. (https://stackoverflow.com/questions/50394856/spring-data-jpa-jpamappingcontext-error-illegalstateexception-expected-to-be) 이걸 보고 해결했지만, Map과 HashMap의 차이가 궁금해졌다.

 

 

DAY 31

그러고보니 JSONB가 뭔지 모름ㅋ http://json-b.net/index.html

https://developer.ibm.com/articles/j-javaee8-json-binding-4/

 

Is it time for a JSON binding standard?

Comparing Gson, Jackson, and JSON-B highlights inconsistencies in basic features and behaviorand demonstrates the potential for a new JSON binding standard.

developer.ibm.com

https://developer.ibm.com/articles/j-javaee8-json-binding-2/

불러오는 중입니다...

https://developer.ibm.com/articles/j-javaee8-json-binding-3/

불러오는 중입니다...

 

'월간' 카테고리의 다른 글

2020.02 / [월간] 공부  (0) 2020.02.03