본문 바로가기
728x90
반응형

IT/JAVA47

URLConnection 과 HttpURLConnection 클래스 설명 참조원문: https://goddaehee.tistory.com/161 2021. 6. 26.
URL, URLConnection 이해 참조 원문 https://coding-factory.tistory.com/269 URL 클래스 1. URL 클래스는 URL을 추상화 하여 만든 클래스입니다. 2. URL 클래스는 final 클래스로 되어 있기 때문에 상속하여 사용할 수 없습니다. 3. 모든 생성자는 MalformedURLException 예외를 발생하기 때문에 반드시 예외처리를 해야 합니다. 메서드 1. openConnection() URLConnection 이 클래스는 추상 클래스로 객체를 생성못하고 URL 클래스의 openConnection() 를 통해서 객체를 생성해야 한다. URLConnection 클래스의 생성 URLConnection 클래스는 추상 클래스이기 때문에 단독적으로 객체를 생성할 수 없습니다. URL 클래스의 객체를.. 2021. 6. 26.
mysql com.mysql.jdbc.Driver deprecated 에러.... 참조원문 : https://ildann.tistory.com/12 실행시 나는 아래 에러 해결하는 방법 Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is `com.mysql.cj.jdbc.Driver'. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary. 요점은...아래와 같이 수정해라. jdbc:mysql://127.0.0.1/crawlerdb?serverTimezone=UTC com.mysql.cj.jdbc.Driver 2021. 6. 21.
ubuntu 에서 자바 설치 스냅을 사용해서 설치하니...너무 예전 버전이 설치됨. 직접 다운받아서 설치하며, 기록을 남김.. 참조) https://websiteforstudents.com/how-to-install-eclipse-ide-on-ubuntu-20-04-18-04/ 1. 다운로드. J2EE Linux 버전으로 받을것 https://www.eclipse.org/downloads/ 2. 압축풀고 tar xfz ~/Downloads/eclipse-jee-2021-03-R-linux-gtk-x86_64.tar.gz 3. 풀린 디렉토리에서 eclipse 실행하면 됨. 4. 그런데, 단축키를 만들고 싶다면??..바로가기를 만들자 nano ~/.local/share/applications/eclipse.desktop 아래 내용을 파.. 2021. 6. 2.
728x90
반응형