리눅스 서버에서 ssl 인증서 만료일 확인하는 방법! 사용하는 서버마다 경로가 다를텐데 보통 /etc 하위에 넣는 것으로 보입니다. 만료일 확인 만료일 확인 [~~~ /etc/ssl/certs]$ openssl x509 -enddate -noout -in /etc/ssl/certs/ca-bundle.crt notAfter=Dec 31 09:37:37 2030 GMT 인증서 전체 유효기간 확인 인증서 전체 유효기간 확인 [~~~ /etc/ssl/certs]$ openssl x509 -dates -in /etc/ssl/certs/ca-bundle.crt notBefore=May 5 09:37:37 2011 GMT notAfter=Dec 31 09:37:37 2030 GMT
the project was not built due to release 21 is not found in the system". Fix the problem, then try refreshing this project and building it since it may be inconsistent. 프로젝트에 올라가져 있는 jre 우클릭 > Properties 로 들어가 줍니다. 들어가보면 default JRE로 설정이 되어 있을텐데 Execution environment 에서 다른 버전의 java로 잡아주면 해결이 됍니다. 에러 메시지에 따라서 java 버전을 선택해야 할것으로 추측이 되는데 저는 13으로 선택하니 해결이 되었습니다.
git 사용하면서 C:\Users\23ffee\workspace\java-test>git push -u origin main To https://github.com/ParkHyunchang/junit5.git ! [rejected] main -> main (fetch first) error: failed to push some refs to 'https://github.com/ParkHyunchang/junit5.git' hint: Updates were rejected because the remote contains work that you do not hint: have locally. This is usually caused by another repository pushing to hint: t..
로컬 컴퓨터에 gradle을 설치하는 방법 일단 cmd 창에서 gradle -v 를 해보면 이렇게 gradle 은 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는 배치 파일이 아닙니다. 이렇게 뜨면 gradle 이 설치가 안되어 있는 것입니다. gradle을 설치하러 https://gradle.org/install/ Gradle | Installation Install the Gradle build tool on Linux, macOS or Windows, either manually or using a package manager like SDKMAN! or Homebrew. gradle.org 공홈으로 들어가서 Binary-only 나 Complete를 눌러주면 압축파일이 받아집니다. 해당 압..
getOrDefault( Object key,V defaultValue ) - Java 8에서 추가된 Collection API 함수들 중 일부이다. 찾는 key가 존재한다면 찾는 key의 value를 반환하고, 없거나 null이면 default 값을 반환한다. package four.one; import java.util.HashMap; import java.util.Scanner; public class test { public static void main(String[] args) { Scanner in = new Scanner(System.in); String str=in.next(); HashMap map=new HashMap(); for(char x : str.toCharArray()){ m..
이클립스에서 자바 프로젝트를 하나 만들어서 패키지를 생성할때 계층적으로 나오는 이미지가 보기 편해서 그렇게 보고 싶은데 이상하게 하나하나 다 보이는 경우가 있습니다. 그럴때는 Package Explorer 에서 Package Presentation 에 들어가서 보고 싶은 방식으로 선택하면 됍니다. 왼쪽이 Flat 오른쪽이 Hierachical