
사이드 프로젝트 기본 기능은 됐다 싶은 와중에 한글을 넣었더니 데이터가 깨지기 시작했습니다. ???로 깨지는 것도 아니고 꿣뚫뀂 같은 오류 디비 툴은 dbeaver, RDBMS는 mysql, IDE는 vs코드를 쓰고 있었기 때문에 바로 한글 인코딩 관련 부분을 다 고치기 시작했습니다. 1. Dbeaver 툴의 dbeaver.ini 수정(-Dfile.encoding=UTF-8 한 줄 추가) 2. ProgramData > mysql > my.ini에 인코딩 설정 추가 [client] default-character-set=utf8 [mysql] default-character-set=utf8 [mysqld] collation-server = utf8_unicode_ci init-connect='SET NAM..

kops 버그인 듯 한데 aws 환경에서 kops로 쿠버네티스 클러스터 구성 후 jenkins 배포 시 다음과 같은 오류가 발생 SyncLoadBalancerFailed status code: 403 Error syncing load balancer: failed to ensure load balancer: AccessDenied: User: arn:aws:sts::836399647365:assumed-role/aws-cloud-controller-manager.kube-system.sa.cluster.today-7r15r6/1675860055045299980 is not authorized to perform: iam:CreateServiceLinkedRole on resource: arn:aws:ia..

kops로 쿠버네티스 클러스터를 구성하고 난 뒤 마스터노드에서 deployment를 적용하자 The connection to the server localhost:8080 was refused 오류 발생 kubeconfig 설정이 적용 안되서라고 /home/ubuntu/.kube/config는 제대로 생성되어 있음 The connection to the server localhost:8080 was refused - did you specify the right host or port? root 유저에서 실행해서 다른 계정의 설정이 적용되지 않음 cp /home/ubuntu/.kube/config /.kube/config kubectl config view https://stackoverflow.com/..
스프링 시큐리티 5.7.0 이후부터 websecurityconfigureradapter를 사용하면 websecurityconfigureradapter is deprecated가 나타납니다. 스프링부트 2.7.8 버전을 사용했더니 시큐리티 버전이 올라 코드 마이그레이션이 필요했습니다. 스프링 블로그에 해결 방법이 올라와 있습니다. https://spring.io/blog/2022/02/21/spring-security-without-the-websecurityconfigureradapter Spring Security without the WebSecurityConfigurerAdapter In Spring Security 5.7.0-M2 we deprecated the WebSecurityConfigur..

h2에서 @ColumnDefault(value = "CURRENT_TIMESTAMP") 을 이용하는 소스가 있었는데, DB를 mysql로 바꾸고 @Column(nullable=false) 했더니 default 컬럼 값에 문제가 있다고 실행 실패 JPA로 mysql에서 Datetime 컬럼에 생성일/수정일이 자동으로 들어가게 하는 두 가지 방법 엔티티 내에서 다음 코드 사용 1. @CreationTimestamp private Instant createdAt; 2. private LocalDateTime createdAt; @PrePersist public void createdAt() { this.createdAt = LocalDateTime.now(); } 날짜, 시간이 잘 입력됨 참고 https://..

접속 설정시 useSSL=false&allowPublicKeyRetrieval=true 두 가지 설정을 추가한다. jdbc:mysql://localhost:3306/test?useSSL=false&allowPublicKeyRetrieval=true DBeaver 기준 설정 방법 접속 화면의 Driver properties에서 설정 변경 https://deeplify.dev/database/troubleshoot/public-key-retrieval-is-not-allowed [Mysql] Public key retrieval is not allowed 에러 해결 Public key retrieval is not allowed 에러가 발생하는 이유와 해결하는 방법에 대해서 소개해드립니다. deeplify...

Failed to start bean 'eurekaAutoServiceRegistration'; nested exception is java.lang.IllegalArgumentException: Unable to find GatewayFilterFactory with name CustomFilter .java 파일의 패키지(경로)가 잘못되서 생기는 오류 com.example.gateway 밑에 만들어야 하는데 com.example 안에 만들어서

xxx.java is a non-project file, only syntax errors are reported 폴더째 복사해서 스프링 부트 프로젝트를 실행하려고 했는데, 다음과 같은 오류가 Problem 탭에 표시되면서 실행되지 않았다. Ctrl+Shift+P를 통해 Clean Java Language 를 실행하고 창을 새로 로딩하면 제대로 돌아간다. 오류가 사라진 화면 참조 https://stackoverflow.com/questions/61826895/how-to-avoid-visual-studio-code-warning-myfile-java-is-a-non-project-file-o How to avoid Visual Studio Code warning: "[myfile].java is a no..