본문 바로가기

전체 글

(59)
docker ps -a restarting (1) docker logs --tail 50 --follow --timestamps 'container_name' 에러가 나면 스타팅이 계속 뜸 그때 로그로 에러를 보고 해결 젠킨스의 경우 파일 권한 문제로 에러가 날 수 있어서 sudo chown 1000 jenkins_home/ 이런식으로 미리 권한을 주고 docker-compose restart 해주면 됨
spring boot Async 참고할 사이트 dveamer.github.io/java/SpringAsync.html
vue nuxt build npm run start
윈도우 아나콘다/미니콘다 쥬피터 노트북 켜기 # 아 이걸 왜 몰라서 시간을 허비하는지 모르겟다 아나콘다 프롬트를 열고 -> conda activate notebook 이거로 가상환경을 바꿔주고 -> jupyter notebook
The Zen of Python There should be one — and preferably only one — obvious way to do it. 어떤 일에든 명확한 — 바람직하며 유일한 — 방법이 존재한다.
미니콘다 사용법 https://greeksharifa.github.io/references/2019/02/01/Miniconda-usage/#requirementstxt%EB%A1%9C-%EA%B0%80%EC%83%81%ED%99%98%EA%B2%BD-%EC%83%9D%EC%84%B1%ED%95%98%EA%B8%B0
QueryDsl 구조 정리 기존의 ●MembeRepository에서 JpaRepository와 MemberRepositoryCustom을 extends 함 ●MemberRepositoryCustom(implement)에서 method를 정의하고 ●MemberRepositoryImpl에서 MemberRepositoryCustom을 Implement하고 구현 마찬가지로 ●StudyRepository 에서 extends JpaRepository, StudyRepositoryExtension 을 상속하고 ●StudyRepositoryExtension(interface)에서 method를 정의하고(findByKeyword) ●StudyRepositoryExtensionImpl에서 implements StudyRepositoryExtensi..
No serializer found for class error jpa에서 post을 조회할 때 user도 같이 조회하는데 post class 안에 user가 @ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name = "msrl") private User user; // 게시글 - 회원의 관계 - N:1 이렇게 되있을 때 오류가 남 user를 lazy 에서 EAGER로 수정하면 에러는 안남 원인 - LAZY옵션은 필요할때 조회를 해오는 옵션이다. 필요가 없으면 조회를 안해서 비어있는 객체를 serializer 하려고 해서 발생되는 문제인것 같다. 위에는 테스트할 때 유저가 비어있는게 있었는데 그걸 시리얼라이저 할때 에러가 나는듯하다. 해결방법은 3가지가 있다. 1. application 파일에 spring.jackson.seria..