parent
e9fdf75d42
commit
ae616b5fbd
|
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
mybatis.type-aliases-package=com.dbnt.kcgfilemanager.model
|
||||
|
|
@ -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() {
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue