오타 수정.

압축 다운로드 경로 수정.
테스트 클레스 삭제.
master
강석 최 2021-12-28 16:22:44 +09:00
parent e9fdf75d42
commit ae616b5fbd
5 changed files with 7 additions and 28 deletions

View File

@ -38,7 +38,3 @@ dependencies {
testImplementation 'org.springframework.boot:spring-boot-starter-test:2.5.6'
testImplementation 'org.springframework.security:spring-security-test:5.5.1'
}
test {
useJUnitPlatform()
}

View File

@ -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();

View File

@ -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<BoardCategory> setboardCategoryToLastDepth(List<BoardCategory> categoryList, BoardCategory category){
private List<BoardCategory> setBoardCategoryToLastDepth(List<BoardCategory> categoryList, BoardCategory category){
for(BoardCategory child: category.getChildCategoryList()){
if(child.getDepth()==4){
categoryList.add(child);
}
setboardCategoryToLastDepth(categoryList, child);
setBoardCategoryToLastDepth(categoryList, child);
}
return categoryList;
}

View File

@ -1,4 +1,3 @@
#spring.devtools.livereload.enabled=true
#file upload size
spring.servlet.multipart.max-file-size=20MB
@ -9,16 +8,14 @@ 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
@ -26,4 +23,3 @@ spring.jpa.hibernate.naming.physical-strategy = org.hibernate.boot.model.naming.
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

View File

@ -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() {
}
}