From 89f624ac7d2c836e68028f77f73e749823f5301f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EC=84=9D=20=EC=B5=9C?= Date: Thu, 13 Jan 2022 18:01:33 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B2=8C=EC=8B=9C=EB=AC=BC=20=EC=9E=91?= =?UTF-8?q?=EC=84=B1=20=ED=8E=98=EC=9D=B4=EC=A7=80=20=EB=B2=84=EA=B7=B8=20?= =?UTF-8?q?=EC=88=98=EC=A0=95.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/BoardController.java | 2 +- .../resources/application-test.properties | 25 +++++++++++++++++++ .../resources/static/js/board/contentWrite.js | 2 +- 3 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 src/main/resources/application-test.properties diff --git a/src/main/java/com/dbnt/kcgfilemanager/controller/BoardController.java b/src/main/java/com/dbnt/kcgfilemanager/controller/BoardController.java index 4344193..e3de793 100644 --- a/src/main/java/com/dbnt/kcgfilemanager/controller/BoardController.java +++ b/src/main/java/com/dbnt/kcgfilemanager/controller/BoardController.java @@ -58,7 +58,7 @@ public class BoardController { mav.addObject("type", "modify"); mav.addObject("content", boardService.selectContentModifyInfo(content.getContentSeq())); } - mav.addObject("categorySeq", categorySeq); + mav.addObject("categorySeq", categorySeq==null?0:categorySeq); mav.addObject("userRole", loginUser.getUserRole()); CategoryRole categoryRole = new CategoryRole(); categoryRole.setUserSeq(loginUser.getUserSeq()); diff --git a/src/main/resources/application-test.properties b/src/main/resources/application-test.properties new file mode 100644 index 0000000..d2ff862 --- /dev/null +++ b/src/main/resources/application-test.properties @@ -0,0 +1,25 @@ + +#file upload size +spring.servlet.multipart.max-file-size=200MB +spring.servlet.multipart.max-request-size=500MB + +#thymeleaf +spring.thymeleaf.prefix=classpath:templates/ +spring.thymeleaf.check-template-location=true +spring.thymeleaf.suffix=.html +spring.thymeleaf.mode=HTML + +#mariaDB +spring.datasource.driverClassName=org.mariadb.jdbc.Driver +spring.datasource.url=jdbc:mariadb://211.195.183.7:3306/kcgFileManager?characterEncoding=UTF-8&serverTimezone=UTC +spring.datasource.username=root +spring.datasource.password=mariadb#0524 + +#jpa +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 \ No newline at end of file diff --git a/src/main/resources/static/js/board/contentWrite.js b/src/main/resources/static/js/board/contentWrite.js index 73d7ac0..02d5a09 100644 --- a/src/main/resources/static/js/board/contentWrite.js +++ b/src/main/resources/static/js/board/contentWrite.js @@ -5,7 +5,7 @@ $(function(){ $(".categorySelector").removeAttr("disabled"); setParentCategory(4, $("#categorySeq").find("[selected]").attr("data-parentseq")); } - if(categorySeq !== undefined){ + if(categorySeq !== 0){ setMenu(); $(".categorySelector").removeAttr("disabled"); const selector = $("#categorySeq").find("[value='"+categorySeq+"']")