From ae616b5fbdc05a2628cde6ef6a91062bea61c16f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EC=84=9D=20=EC=B5=9C?= Date: Tue, 28 Dec 2021 16:22:44 +0900 Subject: [PATCH] =?UTF-8?q?=EC=98=A4=ED=83=80=20=EC=88=98=EC=A0=95.=20?= =?UTF-8?q?=EC=95=95=EC=B6=95=20=EB=8B=A4=EC=9A=B4=EB=A1=9C=EB=93=9C=20?= =?UTF-8?q?=EA=B2=BD=EB=A1=9C=20=EC=88=98=EC=A0=95.=20=ED=85=8C=EC=8A=A4?= =?UTF-8?q?=ED=8A=B8=20=ED=81=B4=EB=A0=88=EC=8A=A4=20=EC=82=AD=EC=A0=9C.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.gradle | 6 +----- .../kcgfilemanager/controller/BoardController.java | 2 +- .../dbnt/kcgfilemanager/service/BoardService.java | 6 +++--- src/main/resources/application-prod.properties | 8 ++------ .../KcgFileManagerApplicationTests.java | 13 ------------- 5 files changed, 7 insertions(+), 28 deletions(-) delete mode 100644 src/test/java/com/dbnt/kcgfilemanager/KcgFileManagerApplicationTests.java diff --git a/build.gradle b/build.gradle index 2eb2884..28a1ad2 100644 --- a/build.gradle +++ b/build.gradle @@ -37,8 +37,4 @@ dependencies { testImplementation 'org.springframework.boot:spring-boot-starter-test:2.5.6' testImplementation 'org.springframework.security:spring-security-test:5.5.1' -} - -test { - useJUnitPlatform() -} +} \ No newline at end of file diff --git a/src/main/java/com/dbnt/kcgfilemanager/controller/BoardController.java b/src/main/java/com/dbnt/kcgfilemanager/controller/BoardController.java index a7e42aa..b030819 100644 --- a/src/main/java/com/dbnt/kcgfilemanager/controller/BoardController.java +++ b/src/main/java/com/dbnt/kcgfilemanager/controller/BoardController.java @@ -162,7 +162,7 @@ public class BoardController { BufferedInputStream in; BufferedOutputStream out; - String tempZipPath = "D:\\kcgFileManager\\tempZip\\"; + String tempZipPath = "C:\\kcgFileManager\\tempZip\\"; File tempFolder = new File(tempZipPath); if (!tempFolder.exists() || tempFolder.isFile()) { tempFolder.mkdirs(); diff --git a/src/main/java/com/dbnt/kcgfilemanager/service/BoardService.java b/src/main/java/com/dbnt/kcgfilemanager/service/BoardService.java index 924b99c..fbd13ea 100644 --- a/src/main/java/com/dbnt/kcgfilemanager/service/BoardService.java +++ b/src/main/java/com/dbnt/kcgfilemanager/service/BoardService.java @@ -43,7 +43,7 @@ public class BoardService { searchResult.setSearchCategoryName(boardCategoryService.getPageTitle(categorySeq)); if(category.getDepth() != 4){ category.setChildCategoryList(boardCategoryService.selectBoardCategoryAll(categorySeq, category.getDepth()+1)); - board.setCategoryList(setboardCategoryToLastDepth(new ArrayList<>(), category)); + board.setCategoryList(setBoardCategoryToLastDepth(new ArrayList<>(), category)); }else{ board.setCategoryList(new ArrayList<>()); board.getCategoryList().add(category); @@ -243,12 +243,12 @@ public class BoardService { return board; } - private List setboardCategoryToLastDepth(List categoryList, BoardCategory category){ + private List setBoardCategoryToLastDepth(List categoryList, BoardCategory category){ for(BoardCategory child: category.getChildCategoryList()){ if(child.getDepth()==4){ categoryList.add(child); } - setboardCategoryToLastDepth(categoryList, child); + setBoardCategoryToLastDepth(categoryList, child); } return categoryList; } diff --git a/src/main/resources/application-prod.properties b/src/main/resources/application-prod.properties index 7eeaf72..0bf2ae4 100644 --- a/src/main/resources/application-prod.properties +++ b/src/main/resources/application-prod.properties @@ -1,4 +1,3 @@ -#spring.devtools.livereload.enabled=true #file upload size spring.servlet.multipart.max-file-size=20MB @@ -9,21 +8,18 @@ spring.thymeleaf.prefix=classpath:templates/ spring.thymeleaf.check-template-location=true spring.thymeleaf.suffix=.html spring.thymeleaf.mode=HTML -#spring.thymeleaf.cache=false #mariaDB spring.datasource.driverClassName=org.mariadb.jdbc.Driver -spring.datasource.url=jdbc:mariadb://localhost:3306/kcg_fm?characterEncoding=UTF-8&serverTimezone=UTC +spring.datasource.url=jdbc:mariadb://localhost:3306/kcgFileManager?characterEncoding=UTF-8&serverTimezone=UTC spring.datasource.username=root spring.datasource.password=kcg211228 #jpa -#spring.jpa.show-sql=true spring.jpa.generate-ddl=false spring.jpa.hibernate.naming.physical-strategy = org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl # MyBatis mybatis.mapper-locations: mybatisMapper/**/*.xml mybatis.configuration.map-underscore-to-camel-case=true -mybatis.type-aliases-package=com.dbnt.kcgfilemanager.model -#logging.level.com.atoz_develop.mybatissample.repository=TRACE \ No newline at end of file +mybatis.type-aliases-package=com.dbnt.kcgfilemanager.model \ No newline at end of file diff --git a/src/test/java/com/dbnt/kcgfilemanager/KcgFileManagerApplicationTests.java b/src/test/java/com/dbnt/kcgfilemanager/KcgFileManagerApplicationTests.java deleted file mode 100644 index 6fa9ee6..0000000 --- a/src/test/java/com/dbnt/kcgfilemanager/KcgFileManagerApplicationTests.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.dbnt.kcgfilemanager; - -import org.junit.jupiter.api.Test; -import org.springframework.boot.test.context.SpringBootTest; - -@SpringBootTest -class KcgFileManagerApplicationTests { - - @Test - void contextLoads() { - } - -}