본문 바로가기

전체 글285

내 컴퓨터 port 확인 하는 방법 cmd 실행 후 netstat -a -n 2022. 6. 30.
Database 종류 /NoSQL 데이터베이스를 사용해야 하는 이유 Database(DB) - SQL (관계형) MSSQL (Window) -1433 MYSQL (Linux, Unix) -3306 Maria DB(Linux, Unix) - ProgramDB Connect Mysql과 다름 -3306 Oracle(Window,Linux) - 특징 여러 PORT 사용할 수 있음 -Free Cubrid (Naver 자체제작) - Mysql + Oracle 요즘 인기 많데요╰(*°▽°*)╯ Database(DB) NoSQL, XML - (비관계형) : Join 불가 Mongo DB Arango DB Couchbase NoSQL 데이터베이스를 사용해야 하는 이유 NoSQL 데이터베이스는 탁월한 사용자 경험을 제공하기 위하여 유연성과 확장성을 비롯해 고성능의 매우 기능적인 데이터베.. 2022. 6. 30.
[java/net] 인터넷 URL 이미지 주소를 이용하여 이미지를 내 pc에 copy하기 public static void main(String[] args) throws Exception{ Scanner sc = new Scanner(System.in); System.out.println("웹에서 가져올 이미지 주소를 입력하세요"); String url =sc.next(); URL u = new URL(url); //USL 메소드/사용자 입력값 선언 URLConnection con = u.openConnection(); //URL 메소드 생성 int imgsize = con.getContentLength(); // 이미지 크기 확인 System.out.println(imgsize); //이미지 크기 출력 String imgtype=con.getContentType(); //이미지 TYPE .. 2022. 6. 27.
[java/net] 인터넷 URL 이미지 주소로 파일 크기/형태 확인 URLConnection/openConnection 인터넷 URL 이미지 주소로 파일 크기/형태 확인 및 내 PC에 저장하는 법 public class net2 { public static void main(String[] args) throws Exception{ Scanner sc = new Scanner(System.in); System.out.println("웹에서 가져올 이미지 주소를 입력하세요"); String url =sc.next(); URL u = new URL(url); //USL 메소드/사용자 입력값 선언 URLConnection con = u.openConnection(); //URL 메소드 생성 int imgsize = con.getContentLength(); // 이미지 크기 확인 System.out.println(imgsize.. 2022. 6. 27.
[java/net] InetAddress ,getByName,getAllByName,getHostAddress 사용 예시 InetAddress : IPnetworkAddress getByName : 접속할 도메인명 getAllByName :도메인 IP정보 확인 (!배열!) getHostAddress:IP주소(숫자)를 문자열로 반환 public static void main(String[] args) throws Exception { //server에 연결 하기위해 //InetAddress : IPnetworkAddress //getByName : 접속할 도메인 주소명을 말합니다. InetAddress ia = InetAddress.getByName("localhost"); //!!자기 기본 정보 확인!! System.out.println(ia); //System.out.println(ia.getHostName()); // .. 2022. 6. 27.