일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- No tests found for given includes
- java 버전 변경
- java version
- easy
- JUnit
- Java 1.8
- no sources given
- property or field 'jobparameters' cannot be found on object of type
- java 여러개 버전
- yum install java
- springbatch error
- 스프링부트테스트
- java 1.8 11
- LeetCode
- OpenFeign
- aws
- springboot
- querydsl no sources given
- java 11
- AWS CLI
- log error
- Medium
- parse
- xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools)
- maybe not public or not valid?
- el1008e
- springboottest
- mac os git error
- error
- java
- Today
- Total
목록분류 전체보기 (116)
쩨이엠 개발 블로그
서버 로그가 겁나 많이 찍히길래 놀래서 들어가봤더니 Too many open files라는 IOException이 발생하고 있었다 2020-07-10_01:55:42.942 ERROR [http-nio-8200-Acceptor] [org.apache.tomcat.util.net.Acceptor:175] ::: Socket accept failed java.io.IOException: Too many open files at java.base/sun.nio.ch.ServerSocketChannelImpl.accept0(Native Method) at java.base/sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:533) at..
에러가 났다 shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory Error: The current working directory doesn't exist, cannot proceed. 뭔가 길다 나는 그냥 start.sh을 실행시키고싶었을 뿐인데 읽어보니 거기 디렉토리 없는데 왜 거기서 하냐는 뜻이다 삭제한 디렉토리 안에서 sh 실행시키지 말라는 뜻이었다 나와서 쉘 돌리니 실행 된다!
node 프로젝트를 재시작했더니 갑자기 certificate has expired 가 뜨면서 application이 안뜨기 시작했다 .. 방금 로컬에서 잘 돌렸는데?? 왠인증서???? 로그가 딱 저거 하나 찍혀있어서 찾아봤는데 결국 버전문제였다 현재 쓰고 있는 버전은 8.94 8.9.4 -> certificate has expired 버전을 올렸다 9.5.0 -> certificate has expired 또 올렸다 10.21.0 -> application 실행!! 아니.. 인증서 문제라면서 버전업이 왜 되어야하는걸까 양심없는 log 였다
맨날 찾아만 보다가 드디어 정리를 하기로 했다 앞으로도 계속 쓸 것 같아섴ㅋㅋㅋㅋㅋ 1. 버전확인 $ httpd -v Server version: Apache/2.4.28 (Unix) Server built: Oct 29 2017 19:28:54 2. Status 확인 $ systemctl status httpd $ service httpd status 3. Apache Start $ systemctl start httpd $ service httpd start $ apachectl start 4. Apache Stop $ systemctl stop httpd $ service httpd stop $ apachectl stop 5. Apache Restart $ systemctl restart httpd..
서버의 정보를 노출하는 것도 해킹의 위험이 있다 그래서 보안 취약점으로 자주 걸리는 노출된 Server 정보를 숨기기로 한다 $ curl -i http://172.21.106.144:8080 HTTP/1.1 200 200 Date: Tue, 30 Jun 2020 08:51:33 GMT Server: Apache/2.4.5 (Unix) Set-Cookie: JSESSIONID=5B89ADE63BCD4E73EFD835B.Tomcat; Path=/; HttpOnly Content-Language: ko-KR Content-Length: 570 Vary: Accept-Encoding Content-Type: text/html;charset=UTF-8 curl을 날렸을 때 받는 Response에 Server 정보..
Class에서 초기화 메소드를 실행하고 싶다 @Service public class DataService { static Map qcPopMap; static Map qcItemMap; static List qcCycleList; DataService(){ initMap(); } private void initMap(){ qcStepConfigMap = new HashMap(); qcTargetDataMap = new HashMap(); qcCycleList = new ArrayList(); } } 예전이라면 생성자를 만들어서 그 안에다 집어넣어서 초기화를 시켜줄 수 있었다 DataService(){ initMap(); } 생성자로 init을 하고싶지 않다면 @PostConstruct를 사용한다 @Ser..
오랜만에 보는 스타트 실패 로그 ㅎㅎㅎㅎ *************************** APPLICATION FAILED TO START *************************** Description: Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured. Reason: Failed to determine a suitable driver class Action: Consider the following: If you want an embedded database (H2, HSQL or Derby), please put it on the clas..
aws cli를 쓰기위해서는 aws 계정에 대한 configure를 써야한다 내 경우는 dev와 prod 두가지의 계정을 바꿔써야했다 $ aws configure list 결과값 Name Value Type Location ---- ----- ---- -------- profile None None access_key ****************4541 shared-credentials-file secret_key ****************H3R6 shared-credentials-file region ap-northeast-2 config-file ~/.aws/config 지금 현재는 profile 이름을 지정하지 않은 default의 경우이다 $ export AWS_DEFAULT_PROFILE=..

https://codebeautify.org/xmlviewer XML을 깔끔하게 보여줄 수 있다 JSON Formatter도 있음 https://jsonformatter.org/
요즘 stream 쓰는게 재밌다 뭔가 코드 간결해보이고(그렇진 않지만) 더 성능 좋아보이고 (그것도 아니지만) 그래서 이번에도 stream을 써서 list를 비교해보기로 했다 이번에 내가 해야할 일은 두 개의 List를 비교하여 있던건 추가하고 없던건 제거할 예정이다 @Test void testData(){ List targetList = Arrays.asList("a1", "a2", "a3", "a4"); List filterList = Arrays.asList("a3", "a4", "a5", "a6"); List filteredList = targetList.stream() .filter(target -> filterList.stream().noneMatch(Predicate.isEqual(targe..