본문 바로가기

IT 자료194

postgresql.pk8 생성하기 스프링에서 DB 연결 작업 중이다. postgresql연결해야 하는데 SSL인증서로 작업 진행 중이다... (정확히는 교체 작업중) 일반적으로 파일 4개를 주는데, 3개 밖에 주지 않았고 그 중 pk8 인증서가 누락되었다. 인증서를 보내주는 제공자도 "원래 인증서 3개뿐이고 다른 이들도 잘 접속한다" 라고 이야기 하셨지만.. 우리는 pk8이 필요한데... ㅠ 결론적으로 key파일로 pk8인증서를 생성할 수 있기 때문에 문제는 없다. pk8인증서를 만들어보자 Create 'postgresql.pk8' with 'postgresql.key' file openssl 설치가 필요하다. - 만약 git이 설치된 상태라면 "C:\Program Files\Git\mingw64\bin\openssl.exe" 경로에서 .. 2023. 12. 26.
java.lang.UnsupportedOperationException: A TupleBackedMap cannot be modified. 에러 내용 : java.lang.UnsupportedOperationException: A TupleBackedMap cannot be modified. - 오류 소스 List list = new ArrayList(); list = service.getCode(); list.get(1).put("result", "S"); // 이 부분 오류 에러 내용을 보면 "TupleBackedMap cannot be modified"이라고 나와 있습니다. 이는 TupleBackedMap이라는 클래스의 인스턴스가 수정될 수 없다는 것을 의미합니다. 해결 방법으로는 먼저, TupleBackedMap 대신 다른 맵 클래스를 사용하는 것입니다. List list = new ArrayList(); list = service... 2023. 7. 13.
java.lang.IllegalArgumentException: Unable to deserialize the execution context 자바 스프링 에러 java.lang.IllegalArgumentException: Unable to deserialize the execution context at org.springframework.batch.core.repository.dao.JdbcExecutionContextDao$ExecutionContextRowMapper.mapRow(JdbcExecutionContextDao.java:328) at org.springframework.batch.core.repository.dao.JdbcExecutionContextDao$ExecutionContextRowMapper.mapRow(JdbcExecutionContextDao.java:312) at org.springframework.jdbc... 2023. 7. 4.
PostgreSQL ssl 연결(java spring) 자바, 스프링(application.yml)환경에서 postgresql에 ssl 인증서를 사용하여 연결하는 방법 sslmode는 postgresql서버 설정에 따라 [disable, allow, prefer, require, verify-ca, verify-full] 중 선택 ssl 경로 유의할 것 jdbc-url: jdbc:postgresql://${dburl}:${dbport}/${dbschema}?charSet=UTF-8&defaultResultSetType=Cursor&ssl=true&sslmode=require&sslrootcert=src/main/resources/root.crt&sslcert=src/main/resources/postgresql.crt&sslkey=src/main/resour.. 2023. 5. 21.