Class에 선언되지 않은 필드 정보가 넘어옴(columns 필드 선언되지 않음)

org.jboss.resteasy.spi.ReaderException: com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "columns"

...
Caused by: com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "columns"

무시하려면

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

@JsonIgnoreProperties(ignoreUnknown = true)
public class .....
## configmap
apiVersion: v1
kind: ConfigMap
metadata:
  name: test-cm
data:
  kube.config: |-
    # ~/.kube/config
    apiVersion: v1
    clusters:
...
      name: kubernetes
    contexts:

          command: ncp-iam-authenticator
  ncloud.config: |-
    # ~/.ncloud/configure
    [DEFAULT]
    ncloud_access_key_id = G
    ncloud_secret_access_key = d
    ncloud_api_url = https://n
    
    
    
    ## deployment
    spec:
  replicas: 1
  selector:
    matchLabels:
      app: test-app
  strategy:
    type: RollingUpdate
  template:
    metadata:
      labels:
        app: test-app
    spec:
      containers:
      - env:
      ...
        volumeMounts:
        - mountPath: /home/default/.kube/config
          name: kubeconfigcm
          subPath: kube.config
        - mountPath: /home/default/.ncloud/configure
          name: kubeconfigcm
          subPath: ncloud.config
          restartPolicy: Always
      volumes:
      - configMap:
          defaultMode: 420
          items:
          - key: kube.config
            path: kube.config
          - key: ncloud.config
            path: ncloud.config
          name: test-cm
        name: kubeconfigcm

 

build.gradle

    implementation ('org.springframework.boot:spring-boot-starter-jdbc') {
        exclude group: 'com.zaxxer', module: 'HikariCP'
    }
    implementation group: 'org.apache.commons', name: 'commons-dbcp2', version: '2.9.0'

application.yaml

 

spring:
  datasource:
    driver-class-name: com.mysql.cj.jdbc.Driver
    url: jdbc:mysql://localhost:3380/testdb
    username: root
    password: test
    dbcp2:
      initial-size: 5
      max-total: 10
      test-while-idle: true
      time-between-eviction-runs-millis: 1000
      num-tests-per-eviction-run: 1

 

+ Recent posts