개발(Web)/Web 65

[Java] 생활코딩 JAVA 상속

Ⅰ. 수업소개 package projectInheritance; class Cal { public int sum(int v1, int v2) { return v1 + v2; } } class Cal3 extends Cal { // Cal 클래스를 확장한다는 의미. // 변수와 메소드를 상속해 다른 클래스가 갖게 함. // -> 재사용성↑ 유지보수↑ 가독성↑ 코드양↓ } public class InheritanceApp { public static void main(String[] args) { Cal c = new Cal(); System.out.println("c : " + c.sum(2, 1)); Cal c3 = new Cal3(); // Cal 클래스 상속됨. System.out.println("c..

개발(Web)/Web 2021.01.01

[Java] 생활코딩 JAVA 객체 지향 프로그래밍

Ⅱ. 남의 클래스 & 남의 인스턴스 package projectOOP; import java.io.FileWriter; import java.io.IOException; public class OthersOOP { public static void main(String[] args) throws IOException { System.out.println(Math.PI); // 3.14웅앵웅 System.out.println(Math.floor(1.8)); // 내림 System.out.println(Math.ceil(1.8)); // 올림 FileWriter f1 = new FileWriter("data.txt"); f1.write("Hello"); f1.write(" Java"); f1.close();..

개발(Web)/Web 2020.12.30

[Java] 생활코딩 JAVA method

Ⅱ. 이미 익숙한 메소드 package projectMethod; public class FirstMethod { public static void main(String[] args) { System.out.println("Hello Method"); System.out.println(Math.floor(1.1)); //Email.send("이메일주소", "Math floor", Math.floor(1.1)); } } Ⅲ. 메소드의 기본 형식 package projectMethod; public class WhyMethod { public static void main(String[] args) { // 100000000 printTwoTimesA(); // 100000000 printTwoTimesA(..

개발(Web)/Web 2020.12.28

[Java] 접근 제어자

Ⅰ. 접근 제어자 * 멤버 또는 클래스의 접근 가능 범위를 설정한다. * 접근 제어자는 클래스, 멤버변수, 메서드, 생성자에 사용할 수 있다. ◀제약 약함 (접근제어자) 제약 강함▶ 접근 제한 public protected (default) private 같은 클래스 O O O O 같은 패키지 O O O 자손 클래스 O O 전체 O 1. public * 접근 제한 없음(모든 클래스와 모든 패키지에서 접근 가능). 2. protected * 같은 패키지 내에서 접근 가능. * 다른 패키지의 경우 자손클래스에서 접근 가능. 3. (default) * 따로 public, protected, private를 붙이지 않을 때 자동(default)으로 지정됨. * 같은 패키지 내에서만 접근 가능. 4. privat..

개발(Web)/Web 2020.12.28

[Tomcat] Several ports (8005, 8088) required by Tomcat v8.5 Server at localhost are already in use. The server may already be running in another process, or a system process may be using the port.

Several ports (8005, 8088) required by Tomcat v8.5 Server at localhost are already in use. The server may already be running in another process, or a system process may be using the port. To start this server you will need to stop the other process or change the port number(s). 대충 8005, 8088 포트가 이미 사용중이라는 내용. 아마도 다른 프로세스나 시스템 프로세스에서 해당 포트를 사용중일 것이라고 한다. 친절하게도 이 서버를 시작하려면 이미 해당 포트를 사용중인 다른 프로세스를 ..

개발(Web)/Web 2020.11.04

[Spring/STS] 스프링 설치 (3)

스프링(Spring/STS) 설치 (2) 00. 개발환경 세팅 (1)" data-og-description="0. Spring Tools 설치" data-og-host="shinye0213.tistory.com" data-og-source-url="https://shinye0213.tistory.com/156" data-og-url="https://shinye0213.tisto.. shinye0213.tistory.com Ⅲ. pom.xml 수정하기 https://mvnrepository.com/artifact/mysql/mysql-connector-java/5.1.41 → MySQL Connector Java 5.1.41 https://mvnrepository.com/artifact/org.mybati..

개발(Web)/Web 2020.10.23

[Spring/STS] 스프링 설치 (2)

스프링(Spring/STS) 설치 (1) 0. Spring Tools 설치 * 아래 글에서 계속. 스프링(Spring/STS) 설치 (2) 00. 개발환경 세팅 (1)" data-og-description="0. Spring Tools 설치" data-og-host="shinye0213.tistory.com" data-og-source-url="h.. shinye0213.tistory.com Ⅰ. Spring 패키지 설정 Ⅱ. Spring 기본 설정 * 아래 글에서 계속. 스프링(Spring/STS) 설치 (3) 00. 개발환경 세팅 (2)" data-og-description="00. 개발환경 세팅 (1)" data-og-description="0. Spring Tools 설치" data-og-host..

개발(Web)/Web 2020.10.22

[Eclipse] The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path

The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path 방법 1. Project Facet 수정 [Eclipse] The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path - The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path 에러 해결 - SVN에 있는 프로젝트를 CHECK OUT 받았더니 시작부터 저런 에러가 나를 반긴다 해결하는 방법에 대해 기.. mine-it-record.tistory.com

개발(Web)/Web 2020.08.03

[JavaScript] 생활코딩 WEB2 JavaScript 34강

3.html (파일로 쪼개서 정리 정돈하기) colors.js 3.html 3.html 최종 WEB HTML CSS JavaScript JavaScript 대충 위키피디아 내용 colors.js 최종 var Links = { setColor:function(color){ var alist = document.querySelectorAll('a'); var i = 0; while(i < alist.length){ alist[i].style.color = color; i = i + 1; } } } var Body = { setColor:function(color){ document.querySelector('body').style.color = color; }, setBackgroundColor:functi..

개발(Web)/Web 2020.07.22
반응형