본문 바로가기
728x90
반응형

IT/JAVA47

ssh를 활용해서 다른 서버로 접속하여 명령어를 실행하기..jsch https://lts0606.tistory.com/6 jsch 사용법(ssh 연결) 자바에서 ssh를 활용해서 다른 서버로 접속하여 명령어를 실행해야 되는 경우가 있었다. 이럴때는 jsch를 활용하면 쉽게 사용이 가능하다. Jsch를 활용한 개념은 3단계로 이루어 진다. 1. Jsch 클래스 lts0606.tistory.com 2023. 4. 20.
RestTemplate 관련 글 Server to Server 통신에 사용되는 Spring의 HTTP 통신 템플릿 Spring 5.0 부터는 deprecated 되었음 실제 예제를 만들어 돌려이해가 쉬울 듯. 아래 3개 링크를 따라가봐라. https://blog.naver.com/hj_kim97/222295259904 https://e2e2e2.tistory.com/15 [springboot] RestTemplate (RestTemplate 기초, RestTemplate으로 카카오 API 호출하기) 목차 RestTemplate RestTemplate 동작 RestTemplate 설정 Connection Pool Message Converter RestTemplate Method GET POST PUT DELETE Exchange 컬렉션.. 2023. 1. 17.
Java stream()메서드, collect() 메서드 와 샘플코드 소스 아래 링크글을 읽어봐라... =========================================================================== public HashMap funcT4() { HashMap map = new HashMap(); List studentList = List.of( new Student("IronMan", 15, Gender.MALE), new Student("Hulk", 18, Gender.MALE), new Student("Captain", 17, Gender.MALE), new Student("Black widow", 14, Gender.FEMMALE) ); // List males = new ArrayList(); // for(Student st.. 2022. 12. 26.
List.of 와 Arrays.asList 의 차이점 https://jaehoney.tistory.com/144 Java - Arrays.asList vs List.of 차이 (완벽 정리)! Arrays.asList() / List.of 자바에서 Array를 List으로 변환하기 위해서는 Arrays.asList(array)를 사용합니다. Java 9 버전 부터는 List.of(array)라는 새로운 팩토리 메소드를 도입했습니다. 차이점은 무엇일까요 ? jaehoney.tistory.com 2022. 12. 23.
728x90
반응형