게시물 작성 페이지 버그 수정.

master
강석 최 2022-01-13 18:01:33 +09:00
parent 9dc42308b3
commit 89f624ac7d
3 changed files with 27 additions and 2 deletions

View File

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

View File

@ -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

View File

@ -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+"']")