본문 바로가기

Programming12

[Spring] 스프링으로 게시판 만들기 1. Spring 실행 후 프로젝트 저장할 위치 지정 * Workspace의 경로는 모두 영어로 지정해야함 2. 프로젝트 생성 File > New > New Spring Starter Project 3. prom.xml 수정 2.2.1.RELEASE 4. Maven 업데이트 board 우클릭 > Maven > Update Project 5. BoardApplication 실행해보기 2021. 2. 22.
[Spring] 맥(Mac)에 STS(Spring Tool Suite) 설치하기 1. JDK가 설치 되어있는지 확인 터미널 > Java -version 입력 * JDK가 없는 경우 설치 JDK 다운로드 (http://www.oracle.com/technetwork/java/javase/downloads/index.html) * Java 환경변수 설정 blog.naver.com/eunoia3jy/221620593012 2. STS 설치하기 spring.io/tools Spring Tools 4 is the next generation of Spring tooling Largely rebuilt from scratch, Spring Tools 4 provides world-class support for developing Spring-based enterprise application.. 2021. 2. 22.
[Java] 1/21 강의정리 (인터페이스, 예외처리, try catch,String Tokenizer,Generic) 인터페이스 Helloworld 실습 // helloworld.java (인터페이스) package ch08.helloworld; public interface Helloworld { public String getMessage() ; } //HelloWorldEngimpl.java(인터페이스 implements) //영어 인사 package ch08.helloworld; public class HelloWorldEngimpl implements Helloworld { @Override public String getMessage() { // TODO Auto-generated method stub return "Hello World"; } } //HelloWorldKoimpl.java(인터페이스 impl.. 2021. 1. 21.
[Java] 1/20 강의 정리 (로그인 구현, 상속, 오버라이드, 패키지, 추상클래스, 인터페이스) 로그인 // LoginSystem.java package ch06.login; public class LoginSystem { public LoginResult doLogin(String id, String pass) { LoginResult result = new LoginResult(); if(id.equals("admin")&&pass.equals("1234")){ result.result = true; result.message = id + "님 반갑습니다."; } else if(!id.equals("admin")) { result.message = "아이디를 확인하세요."; } else { result.message = "비밀번호 확인하세요."; } return result; } } //Logi.. 2021. 1. 20.