일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- auto.create.topics.enable
- public 필드
- Java
- annotation processor
- System.out
- 정렬
- 접근지시자
- 상속
- 람다식
- raw 타입
- Switch Expressions
- 로컬 클래스
- System.err
- 함수형 인터페이스
- 제네릭 타입
- github api
- System.in
- 자바할래
- Effective JAVA
- 바운디드 타입
- 항해99
- Study Halle
- junit 5
- 스파르타코딩클럽
- 제네릭 와일드 카드
- 익명 클래스
- 프리미티브 타입
- 자바스터디
- 합병 정렬
- 브릿지 메소드
- Today
- Total
목록분류 전체보기 (311)
코딩하는 털보

Jmeter 부하 테스트 Jmeter로 HTTP 테스트를 하면서 두 가지 리스너를 통해서 성능 정보를 추출했다. 참고 : https://kamang-it.tistory.com/398 Mac에서 Jmeter 설치 > brew install jmeter 실행 > jmeter Thread Group 모든 요청은 아래와 같은 Thread 설정을 통해 실행된다. Number of Threads : 쓰레드를 동시에 몇개 생성할지이다. 즉 동시에 몇개의 트랜잭션을 실행시킬지이다. 이는 사람이 동시에 접속하는 효과를 낸다. 10명이서 동시에 접속하는 상황을 만들고 싶다면 10을 사용하면 된다. Ramp-Up Period : 쓰레드를 Ramp-Up Period시간동안 실행해라는 의미이다. 단 균등하게 시간을 나눠서 실행..
오늘의 삽질 QueryDsl 사용하기. QueryDsl 관련 의존성을 추가하고 기존 리포지토리가 상속할 QueryDsl 인터페이스와 그 구현체 추가. public interface RecommendationRepositoryCustom { List searchByNumber(int number); } @re public class RecommendationRepositoryImpl implements RecommendationRepositoryCustom { private final JPAQueryFactory queryFactory; public RecommendationRepositoryImpl(EntityManager em) { this.queryFactory = new JPAQueryFactory..
오늘의 삽질 SQL 로그 파일만들기 스케줄러가 잘 동작했는지 검증할 수 있는 로그 파일을 만들기 위해서 발생한 SQL을 파일로 저장하려고 한다. logback-spring.xml ${home}/scheduler-%d{yyyy-MM-dd}.%i.log 10MB 30 utf8 ${FILE_LOG_PATTERN} 위의 설정을 간단하게 설명하자면 hibernate가 기본적으로 제공하는 로깅 'org.hibernate.SQL' 중에서 DEBUG 이상의 로그들은 SCHEDULER_FILE_APPENDER에 의해서 파일로 써지도록 하는 것이다. (TRACE-DEBUG-INFO-WARN-ERROR) hibernate.SQL은 기본적으로 DEBUG인데, application.properties에서 레벨을 ..
오늘의 삽질 No EntityManager with actual transaction available for current thread - cannot reliably process 'remove' call; private void deleteUser(User user) { followRepository.deleteByFollower(user); followRepository.deleteByFollowing(user); userRepository.delete(user); } followRepository.deleteByFollowing(user); 에서 에러가 발생했다. EntityManager가 없다니... 예상에는 @Transactional이 안걸려있어서 인 것 같은데, 검색해보니 d..

공격 확인 요상한 주소에서 스프링으로 POST요청을 보내는 것을 확인했다. 8080 포트를 바꿔야 할 듯 하다. 오늘 한 일 아래 6 개 API 응답에 categoryId 추가 습관 생성 POST /habits 습관 상세 정보 요청 GET /habits/{habitId} 습관 변경 Patch /habits/{habitId} 습관 체크 GET /habits/check/{habitId} 사용자 습관 목록 조회 GET /user/habits 특정 유저 정보 조회 GET /user/{monsterCode}/info 마이페이지 조회용 GET /user/detail API 추가 사용자 상세 페이지, 마이페이지 요청 응답에 totalHabitCount 추가 유저 상세 페이지 습관 최근 생성순으로 정렬 추천 사용자 테..

오늘의 삽질 Elastic BeansTalk에서 HTTPS 적용하기 freenom에서 무료로 1년간 사용할 수 있는 도메인 구매하기 Get it now!로 진행하다보면 자연스럽게 회원가입이 진행된다. ACM에서 SSL 인증서 신청하기 인증서 요청하기 클릭 퍼블릭 인증서 요청 도메인 이름 입력하고 DNS로 검증하기 설정 EB ALB에서 리스너 추가하기
오늘의 삽질 순환 참조 에러 Is there an unresolvable circular reference? UserService가 MonsterService를 DI 받고 @Service @RequiredArgsConstructor public class UserService { private final UserRepository userRepository; private final FollowServiceImpl followService; private final MonsterService monsterService; private final HabitServiceImpl habitService; 반대로 MonsterService도 UserService를 DI 받는다면 @Service @Required..
Mysql Replication with Docker 필수 패키지 설치 sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common GPG Key 인증 curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - 도커 설치 sudo apt-get update && sudo apt-get install docker-ce docker-ce-cli containerd.io ubuntu 유저에 도커 권한 부여 sudo usermod -aG docker ubuntu Mysql 도커 이미지 다운로드 sudo docker ..
오늘의 삽질 Nginx SSL 설정하기 certbot 설치 sudo snap install certbot --classic 아래의 명령어로 인증서를 받을 수 있다. mydomainaddress에는 나의 도메인 이름, mymail@mail.com에는 이메일 주소를 넣는다. sudo certbot --nginx -d mydomainaddress --email mymail@mail.com --agree-tos 잘 완료되었다면 nginx.conf 파일의 해당 도메인에 맞는 server 에 알아서 내용을 추가해준다. server { include /etc/nginx/conf.d/service-url.inc; server_name rtonepage.shop localhost; listen 443 ssl; # man..
오늘의 삽질 Jasypt를 사용하여 application.properties 암호화 하기 Jasypt 라이브러리는 스프링 어플리케이션을 개발할 때 프로퍼티에 대한 암호화 기능을 제공한다. 참고 : https://github.com/ulisesbocchio/jasypt-spring-boot#use-you-own-custom-encryptor Simply add the starter jar dependency to your project if your Spring Boot application uses @SpringBootApplication or @EnableAutoConfiguration and encryptable properties will be enabled across the entire Spri..