본문 바로가기
728x90

전체 글143

이클립스에 STS(Spring Tools 4) 설치 이클립스에 STS(Spring Tools 4) 설치 Spring Boot 프로젝트 생성을 하려면 이클립스에 Spring Tools 4 (Spring Tool Suite 4)를 설치해야 한다. 위와 같이 이클립스 마켓플레이스에 들어간 후 Installed 탭을 확인해보면 Spring Tools 4 가 설치 완료된 것을 확인할 수 있다. 2022. 7. 8.
GitLab 버전 업데이트(1) - 문서 확인 GitLab 버전 업데이트(1) - 문서 확인 https://about.gitlab.com/releases/2022/06/30/critical-security-release-gitlab-15-1-1-released/ GitLab Critical Security Release: 15.1.1, 15.0.4, and 14.10.5 Learn more about GitLab Critical Security Release: 15.1.1, 15.0.4, and 14.10.5 for GitLab Community Edition (CE) and Enterprise Edition (EE). about.gitlab.com Recommended Action We strongly recommend that all instal.. 2022. 7. 6.
GitLab 버전 확인하기 GitLab 버전 확인하기 https://about.gitlab.com/releases/2022/06/30/critical-security-release-gitlab-15-1-1-released/ GitLab Critical Security Release: 15.1.1, 15.0.4, and 14.10.5 Learn more about GitLab Critical Security Release: 15.1.1, 15.0.4, and 14.10.5 for GitLab Community Edition (CE) and Enterprise Edition (EE). about.gitlab.com Recommended Action We strongly recommend that all installations run.. 2022. 7. 6.
Git Config 설정 Git Config 설정 git config 사용자 셋팅 $ git config --global user.name "jiurinie" $ git config --global user.email "jiurinie@gmail.com" git config SSL 자체 인증서 사용 오류 발생 시 허용 git clone https://gitlab.test.com/test/web/test-repostiry.git Cloning into test-repostiry'... fatal: unable to access 'https://gitlab.test.com/test/web/test-repostiry.git/': server certificate verification failed. CAfile: /etc/ssl/ce.. 2022. 7. 6.
이클립스에 Lombok 설치 이클립스에 Lombok 설치 롬복 사이트에 들어가서 다운로드하자. https://projectlombok.org/download Download projectlombok.org 더블클릭하여 실행 시 메인클래스를 찾지 못하는 경우에는 CMD(명령 프롬프트)의 java 명령어로 실행해야 한다. java -jar lombok.jar IDE를 찾을 수 없으면 OK 누른 후, Specify location 클릭하여 이클립스 경로를 찾아 적용한다. 2022. 7. 5.
Lombok이란? Lombok 사용법 Lombok이란? Lombok 사용법 Lombok이란 Java의 라이브러리로 반복되는 메소드를 Annotation을 사용해서 자동으로 작성해주는 라이브러리다. 보통 DTO나 Model, Entity의 경우 여러 속성이 존재하고 이들이 가지는 프로퍼티에 대해서 Getter나 Setter, 생성자 등을 매번 작성해줘야 하는 경우가 있다. 이러한 부분을 자동으로 만들어주는 라이브러리다. Lombok을 이용해서 작성한 코드는 컴파일 과정에서 Annotation을 이용해서 코드를 생성하고 .class에 자동 컴파일 된다. build.gradle plugins { id 'org.springframework.boot' version '2.7.1' id 'io.spring.dependency-management' ve.. 2022. 7. 5.
이클립스 Eclipse IDE 2022-06 설치하기 이클립스 Eclipse IDE 2022-06 설치하기 Eclipse를 설치하기 위해 아래 사이트로 이동한다. https://www.eclipse.org/ 본인이 사용할 목적에 맞게 다운로드 받으면 된다. Eclipse IDE for Enterprise Java and Web Developers 다운로드 받고 압축 풀고 실행해보자! 설치가 완료되었다! 2022. 7. 5.
[Centos7] firewall 방화벽 명령어 firewall 방화벽 명령어 추가 (포트,서비스) $ firewall-cmd --permanent --zone=public --add-port=22/tcp $ firewall-cmd --permanent --zone=public --add-service=http 제거 (포트,서비스) $ firewall-cmd --permanent --zone=public --remove-port=22/tcp $ firewall-cmd --permanent --zone=public --remove-service=http 재시작 $ firewall-cmd --reload 설정파일 $ cat /etc/firewalld/zones/public.xml 복잡한 룰(rich-rule) 추가 $ firewall-cmd --perma.. 2022. 7. 5.
[Centos7] systemctl 명령어 사용법 systemctl 명령어 사용법 서비스 재실행 (예 : sshd) $ systemctl restart sshd.service 서비스 중지 (예 : sshd) $ systemctl stop sshd.service 서비스 시작 (예 : sshd) $ systemctl start sshd.service 서비스 상태보기 (예 : sshd) $ systemctl status sshd.service 부팅시 서비스 시작하기 (예 : sshd) $ systemctl enable sshd.service 부팅시 서비스 시작하지 않음 (예 : sshd) $ systemctl disable sshd.service 부팅시 실행되는 서비스인지 검사 (예 : sshd) $ systemctl is-enabled sshd 서비스 목록.. 2022. 7. 5.
이미 사용중인 포트 프로세스 확인 및 제거 이미 사용중인 포트 프로세스 확인 및 제거 . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v2.7.1) 2022-07-05 11:24:59.227 INFO 9632 --- [ main] kr.co.urlrewrite.UrlrewriteApplication : Starting UrlrewriteApplication using Java 11.. 2022. 7. 5.
Spring Boot urlrewritefilter를 이용한 URL 리다이렉션 urlrewritefilter를 이용한 URL 리다이렉션 리다이렉션은 DNS 서버, 웹 서버, 웹 어플리케이션에서 할 수 있다. 이번에는 Spring Boot 내에서 조건이 맞으면 해당 URL로 리다이렉션하는 방법을 알아보자. 우선 spring starter project 를 이용해 urlrewrite 라는 스프링부트 프로젝트를 생성한다. plugins { id 'org.springframework.boot' version '2.7.1' id 'io.spring.dependency-management' version '1.0.11.RELEASE' id 'java' id 'war' } group = 'kr.co.urlrewrite' version = '0.0.1-SNAPSHOT' sourceCompatib.. 2022. 7. 5.
이클립스 프록시 설정하기 이클립스 프록시 설정하기 외부망 사용이 불가능한 경우 프록시 서버를 연결해 이클립스에 인터넷 연결을 하여 Eclipse Marketplace를 이용해보자. Elipse Marketplace를 이용하여 인터넷 연결이 정상적으로 연결이 되는지 확인한다. 이클립스에만 프록시 설정을 하였으므로, 윈도우의 인터넷 사용은 연결이 안된다. 앞으로는 Active Provider (Manual / Native) 변경을 통해 손쉽게 설정할 수 있다. 이런식으로 이클립스에 프록시 설정 시 내부망 SVN이나 Gitlab 연결이 불가능하다. 프록시 설정 중 하단의 프록시 bypass를 이용하여 특정 호스트는 proxy 연결을 사용하지 않을 수 있을 것이다. 2022. 7. 4.
이클립스 다크모드 사용하기 이클립스 다크모드 사용하기 이클립스를 이용해 개발하다보면 눈이 아프다.. 이럴때 다크모드를 이용하여 눈의 피로도를 낮춰보자! 그 외에 다른 테마도 많으니 사용해보고 마음에 드는걸로 픽하시길..! 2022. 7. 4.
파일의 이름과 확장자 분리 / How to get name and extension of a file in java 파일의 이름과 확장자 분리 / How to get name and extension of a file in java package test; public class Test { public static void main(String[] args) { String file = "abcdef.pdf"; int lastIndex = file.lastIndexOf("."); String fileName = file.substring(0, lastIndex); String extension = file.substring(lastIndex + 1); System.out.println("file name : " + fileName); System.out.println("file extension : " + exten.. 2022. 7. 4.
telnet으로 원격 서버 포트 확인 / How to check a remote port is open telnet으로 원격 서버 포트 확인 / How to check a remote port is open 원격 서버의 작업 중 클라이언트에서 접근 불가 시 네트워크상 방화벽의 문제인지 서버의 설정 오류인지 확인할 수 있는 방법입니다. 예를 들어 서버의 http데몬을 올렸는데 인터넷으로 접근이 불가능할 경우 이를 통해 문제점을 유추할 수 있습니다. 시작 - cmd telnet www.naver.com 80 네이버의 80포트로 telnet을 연결합니다. 위와같이 검은화면으로 커맨드창이 변경되는 경우 원격지의 80포트는 열려 있으며, 정상적으로 접근이 가능한 것을 알 수 있습니다. 이 경우 네이버의 사이트에 인터넷을 통한 접근이 불가능하다면, 네트워크 또는 방화벽의 문제가 아닌 서버의 문제라고 유추해볼 수 있습.. 2022. 7. 4.
728x90