개발(Web) 129

[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

[Git/GitHub] Failed to write credentials for 'https://github.com/이름/레포명.git' to secure store Salt must be 8 bytes long

[eclipse][git] 이클립스 git 처리 중 failed to write credential 'https://github.com' 오류 이클립스에 저장된 git 저장소의 키가 꼬이게 되면 이런 오류가 발생한다. failed to write credential 'https://github.com' 이 오류가 발생하면 암호를 매번 다시 넣어야 한다. 이럴 때는 이클립스에 저장된 118k.tistory.com Eclipse secure storage Is it possible to disable completely the secure storage password of Eclipse? I am running Eclipse Helios on Windows 7. stackoverflow.com

개발(Web)/VCS 2020.12.13

[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

[Oracle] Recovery 예시

Ⅰ. 복구 절차 예시 * 이 다음부터는 이전 글을 참고해 Recovery를 진행하면 된다. 오라클(Oracle) Recovery Ⅰ. 복구(Recovery) 용어 1. Restore(복원) * 백업 파일로부터 손실된 파일을 되살리는 작업. * 데이터 손실 발생함. * 작업 방법 : $] cp 2. Recover(복구) * Datafile만 해당되는 작업으로 복원된 Datafile에 R.. shinye0213.tistory.com 출처 : 아이티윌 부산교육센터 Oracle Database 12c : 실습가이드북

개발(Web)/DB 2020.10.23

[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
반응형