본문 바로가기

전체 글

(275)
[복습_JAVA] 01 ● JAVA 프로그램 - JAVA 프로그램은 이식성이 좋다. - 과정 JAVA 프로그램 JVM : JAVA 프로그램을 OS에 맞게 번역한다. OS(운영체제) 하드웨어 ● JVM(Java Virtual Machine) - JAVA 프로그램을 실행해 줌 - 가상 운영체제 ​ ​ ​ ● JRE(Java Runtime Environment) - JVM을 생성하는 부분 - JVM을 실행할 때 필요한 라이브러리 파일들을 가지고 있다. ​ ​ ​ ● JDK(Java Development Kit) - JRE 외에 개발에 필요한 도구들을 가지고 있다. - 컴파일 명령어와 실행 명령어를 담고 있다. ● JAVA 기본 구조 - 프로젝트 > 패키지 > 클래스 > 메소드 > 소스코드 ● 출력 메소드 1. print() : 마지..
[Web_Spring] 22 실습 - [Web_Spring] 21 이어서 1. src/test/java/com.example.board/mapper/AttachMapperTests.java​ package com.example.board.mapper; import com.example.board.domain.vo.AttachFileVO; import com.example.board.domain.vo.BoardVO; import lombok.extern.slf4j.Slf4j; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.Spr..
[Web_Spring] 21 실습 - board 이어서 ​ 1. src/main/resource/application.properties​ #server port server.port=10003 #JDBC spy datasource log4jdbc.spylogdelegator.name=net.sf.log4jdbc.log.slf4j.Slf4jSpyLogDelegator spring.datasource.hikari.driver-class-name=net.sf.log4jdbc.sql.jdbcapi.DriverSpy spring.datasource.hikari.jdbc-url=jdbc:log4jdbc:oracle:thin:@localhost:1521:XE spring.datasource.hikari.username=hr spring.dat..
[Web_Spring] 20 실습(댓글) - ex03 1. pom.xml 4.0.0 org.springframework.boot spring-boot-starter-parent 2.7.1 com.example ex03 0.0.1-SNAPSHOT ex03 attachment 11 org.springframework.boot spring-boot-starter-thymeleaf org.springframework.boot spring-boot-starter-web org.springframework.boot spring-boot-starter-web-services org.springframework.boot spring-boot-devtools runtime true org.springframework.boot spring-boot-..
[Web_Spring] 23 실습 - [Web_Spring] 22 이어서 1. pom.xml 4.0.0 org.springframework.boot spring-boot-starter-parent 2.7.0 com.example board 0.0.1-SNAPSHOT board MyBatis Practice 11 org.springframework.boot spring-boot-starter-jdbc org.springframework.boot spring-boot-starter-thymeleaf org.springframework.boot spring-boot-starter-web org.springframework.boot spring-boot-starter-web-services org.mybatis.spring.boot myb..
[Web_Spring] 19 실습(댓글) - [Web_Spring] 18 이어서 ​ ​ 1. src/main/java/com.example.board/domain/vo/ReplyPageDTO.java​ package com.example.board.domain.vo; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; import org.springframework.stereotype.Component; import java.util.List; @Component @Data @NoArgsConstructor @AllArgsConstructor public class ReplyPageDTO { private List list; pr..
[Web_Spring] 18 실습(댓글) - [Web_Spring] 17 이어서 1. src/main/resource/static/js/reply.js let replyService = (function(){ function add(reply, callback){ console.log("add reply........."); console.log(reply); $.ajax({ url: "/reply/new", type: "post", data: JSON.stringify(reply), contentType: "application/json", success: function(result){ if(callback){ callback(result); } } }); } function getList(param, callback){ let..
[Web_Spring] 17 실습(댓글) - [Web_Spring] 16 이어서 ​ 1. src/main/java/com.example.board/controller/BoardController.java​ package com.example.board.controller; import com.example.board.domain.vo.BoardVO; import com.example.board.domain.vo.Criteria; import com.example.board.domain.vo.PageDTO; import com.example.board.service.BoardService; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; import o..