본문 바로가기

웹 개발

(140)
[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..
[Web_Spring] 16 실습(댓글) - [Web_Spring] 15 이어서 ​ ​ 1. src/main/java/com.example.board/domain/vo/ReplyVO.java​ package com.example.board.domain.vo; import lombok.Data; import org.springframework.stereotype.Component; @Component @Data public class ReplyVO { private Long replyNumber; private Long boardNumber; private String replyContent; private String replyWriter; private String replyRegisterDate; private String re..