일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
- JPA
- docker-compose
- docker
- WebLogic
- Redis Sentinel
- KAFKA
- netflix oss
- Spring Open Feign
- Netty
- QueryDSL
- Docker Compose
- jmeter
- redis
- argo cd
- mybatis
- vue.js
- Hibernate
- spring cloud
- Selenium
- cassandra
- weblogic 10
- coalesce
- spring boot redis
- ChannelPipeline
- MySQL
- Airflow
- spring boot
- RabbitMQ
- grafana
- docker compose mysql
- Today
- Total
목록분류 전체보기 (410)
IT.FARMER
EntityManager 를 이용하여 mearge 문을 사용하거나 insert를 사용할때... 다음과 같은 오류가 났다. No EntityManager with actual transaction available for current thread - cannot reliably process 'merge' call transaction 관련된 설정이 없다고해서 확인해보니 역시나... @Transactional 을 설정하지 않았다. @Transactional public void update(T abstractAdEntity) { try { entityManager.merge(abstractAdEntity); entityManager.flush(); } catch (Exception e) { e.print..
linux mysql 삭제 , centos [(EOL) ~]$ sudo yum remove -y mysql-community-* Loaded plugins: fastestmirror, langpacks Resolving Dependencies --> Running transaction check ---> Package mysql-community-client.x86_64 0:5.7.38-1.el7 will be erased ---> Package mysql-community-common.x86_64 0:5.7.38-1.el7 will be erased ---> Package mysql-community-libs.x86_64 0:5.7.38-1.el7 will be erased ---> Package my..
mysql data backup (dump) Shell 에서 mysqldump 명령어를 이용하여 database를 백업한다. 데이터 베이스 백업 mysqldump -u [사용자 계정] -p [패스워드] [원본 데이터베이스명] > [생성할 백업 DB명].sql mysqldump -u aereport -p ae_report > ae_report.20220502.sql 데이터 복원 mysql -u [사용자 계정] -p [패스워드] [복원할 DB] < [백업된 DB].sql mysql -u aereport -p ae_report < ae_report.20220502.sql
scp , rsync. linux 데이터 베이스 백업 mysqldump -u [사용자 계정] -p [패스워드] [원본 데이터베이스명] > [생성할 백업 DB명].sql mysqldump -u aereport -p ae_report > ae_report.20220502.sql SCP 파일 전송 scp 와 rsnc의 가장큰 차이첨은 속도라고한다. 또한 이름그대로 scp 는 심플하게 카피만 하고 끝나며, rsync 는 변경된 파일들이 있으면 변경된 파일까지 같이 씽크를 맞춰 준다. scp -P [서버포트] [보낼파일명] [서버계정]@[서버ip]:[받을경로] option r : 하위 폴더를 포함하여 모두 복사(Recursive) p : 권한 및 속성을 유지(Preserve) c : 압축 옵션(Compress) ..
Hibernate(JPA) 영속성 (persistence) JPA/ Hibernate 를 사용할때 대부분 생명주기를 모른상태에서 개발을 하다보면 실수? 혹은 왜 이렇게 되지 하는 경우를 겪게 된다. 알고 있더라도 왜이러지 이럴때가 있다! 어? 왜이렇게 동작하지 하고 말이다. 1. Entity life sycle (엔티티생명주기) 비영속(new/transient) 영속성 컨텍스트와 전혀 관련이 없는 상태 영속 (managed) 영속성 컨덱스트에 저장된 상태 준영속 (detached) 영속성 컨텍스트에 저장되었다가 분리된 상태 삭제(removed) 삭제된상태 1.1 비영속성(new) 앞서 이야기 했듯이 영속성 컨텍스트와 전혀 관련이 없는 상태로 엔티티를 새로 생성한 단계이다. MemberEntity memb..
Spring Transactional 옵션 Tranction 의 성질에 대해 생각해보자 원자성→ 한트렌젝션내에서 실행한 작업들은 하나로 간주하고 작업한다. 즉 모두성공, 혹은 모두 실패이다. 일관성→트렌젝션은 일관성있는 데이터베이스 상태를 유지한다. 격리성→동시에 실행되는 트렌젝션들이 서로에게 영향을 미치지 않도록 한다. 지속성→ 트렌젝션을 마치면 결과가 항상 저장되어야 한다. Spring Transaction 속성 name - 메서드명 isolation (격리수준) propagation(전파) readOnly 트렌젝션롤백 예외 (rollback-for, rollbackfor, rollbackForClassName) 논트렌젝션 롤백 예외 (no-rollback-for ) timeout name - 메서드..
2022.01.14 - [Spring/Spring Cloud] - Spring Open Feign 2022.01.14 - [Spring/Spring Cloud] - open feign log 설정 2022.01.14 - [Spring/Spring Cloud] - spring open feign 예제 2022.01.14 - [Spring/Spring Cloud] - open feign error decoder custom 2022.01.14 - [Spring/Spring Cloud] - spring open feign retry (circuit breaker) Open Feign circuit breaker 테스트 시나리오는 다음과 같다. (fallback & retry) 기능 수행 전제 조건 servic..
오픈페인을 사용하면서 발생되는 오류에 대한 컨트롤을 커스텀 하게 구현 할 수 있다. ErrorDecoder 를 상속받아 구현하면 된다. HTTP method 에 따라 응답값을 확인하고 익셉션을 다르게 설정 한다. 만약 circuit breaker 기능중 retry 기능을 사용하기 위해서는 exception 을 꼭 RetryableException을 사용하여야 한다. 다른 익셉션을 던지면 retry 는 설정해도 동작 되지 않는다. @Slf4j public class GlobalCustomErrorDecoder implements ErrorDecoder { @Override public Exception decode(String methodKey, Response response) { log.warn("gl..
spring boot 에서 open feign 을 사용하기 위햐서는 spring cloud 라이브러리를 사용해야 한다. 앞서 이야기 했듯 open feign은 인터페이스 구현 만으로 빠르고 쉽게 api 를 호출 할 수 있다. gradle.build plugins { id 'org.springframework.boot' version '2.6.2' id 'io.spring.dependency-management' version '1.0.11.RELEASE' id 'java' } group = 'com.example' version = '0.0.1-SNAPSHOT' sourceCompatibility = &#..