From d7d8b717c5c719bd2739b140e69360508e3a207c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EC=84=9D=20=EC=B5=9C?= Date: Wed, 7 Sep 2022 18:08:41 +0900 Subject: [PATCH] =?UTF-8?q?=EC=B2=A9=EB=B3=B4=EC=88=98=EC=A7=91=ED=99=9C?= =?UTF-8?q?=EB=8F=99=20=EC=99=B8=EC=82=AC=EA=B2=AC=EB=AC=B8=20=EC=9B=94?= =?UTF-8?q?=EA=B0=84=EA=B3=84=ED=9A=8D=20=EC=9E=91=EC=97=85=EC=A4=91.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/dbnt/faisp/config/BaseBoard.java | 2 ++ .../fpiMgt/monthPlan/model/BoardPlan.java | 3 ++ .../dbnt/faisp/menuMgt/MenuMgtService.java | 3 +- .../resources/application-test.properties | 32 +++++++++++++++++++ 4 files changed, 38 insertions(+), 2 deletions(-) create mode 100644 src/main/resources/application-test.properties diff --git a/src/main/java/com/dbnt/faisp/config/BaseBoard.java b/src/main/java/com/dbnt/faisp/config/BaseBoard.java index 8b0c8a43..95928459 100644 --- a/src/main/java/com/dbnt/faisp/config/BaseBoard.java +++ b/src/main/java/com/dbnt/faisp/config/BaseBoard.java @@ -3,6 +3,7 @@ package com.dbnt.faisp.config; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.Setter; +import org.springframework.format.annotation.DateTimeFormat; import javax.persistence.Column; import javax.persistence.Transient; @@ -19,6 +20,7 @@ public class BaseBoard extends BaseModel { @Column(name = "wrt_nm") private String wrtNm; @Column(name = "wrt_dt") + @DateTimeFormat(pattern = "yyyy-MM-dd") private LocalDateTime wrtDt; } diff --git a/src/main/java/com/dbnt/faisp/fpiMgt/monthPlan/model/BoardPlan.java b/src/main/java/com/dbnt/faisp/fpiMgt/monthPlan/model/BoardPlan.java index 74045e72..5eae1529 100644 --- a/src/main/java/com/dbnt/faisp/fpiMgt/monthPlan/model/BoardPlan.java +++ b/src/main/java/com/dbnt/faisp/fpiMgt/monthPlan/model/BoardPlan.java @@ -1,11 +1,13 @@ package com.dbnt.faisp.fpiMgt.monthPlan.model; import com.dbnt.faisp.config.BaseBoard; +import com.fasterxml.jackson.annotation.JsonFormat; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.Setter; import org.hibernate.annotations.DynamicInsert; import org.hibernate.annotations.DynamicUpdate; +import org.springframework.format.annotation.DateTimeFormat; import javax.persistence.*; import java.time.LocalDate; @@ -28,6 +30,7 @@ public class BoardPlan extends BaseBoard { @Column(name = "content_title") private String contentTitle; @Column(name = "plan_dt") + @DateTimeFormat(pattern = "yyyy-MM-dd") private LocalDate planDt; @Column(name = "section_nm") private String sectionNm; diff --git a/src/main/java/com/dbnt/faisp/menuMgt/MenuMgtService.java b/src/main/java/com/dbnt/faisp/menuMgt/MenuMgtService.java index 9e0ae914..9cd4c5af 100644 --- a/src/main/java/com/dbnt/faisp/menuMgt/MenuMgtService.java +++ b/src/main/java/com/dbnt/faisp/menuMgt/MenuMgtService.java @@ -33,12 +33,11 @@ public class MenuMgtService { return duplMenu.getMenuUrl(); }else{ menuMgtRepository.save(menuMgt); - return ""; } }else{ menuMgtRepository.save(menuMgt); - return ""; } + return ""; } @Transient diff --git a/src/main/resources/application-test.properties b/src/main/resources/application-test.properties new file mode 100644 index 00000000..0ae0b7a9 --- /dev/null +++ b/src/main/resources/application-test.properties @@ -0,0 +1,32 @@ + +#file upload +spring.servlet.multipart.location=/docker/faisp/uploadFiles +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 + +#Datasource Configuration +spring.datasource.hikari.maximum-pool-size=4 +spring.sql.init.encoding=utf-8 +#spring.datasource.driverClassName=net.sf.log4jdbc.sql.jdbcapi.DriverSpy +spring.datasource.driverClassName=org.postgresql.Driver +#spring.datasource.url=jdbc:log4jdbc:postgresql://118.219.150.34:50503/faisp +spring.datasource.url=jdbc:postgresql://localhost:5432/faisp +spring.datasource.username=dbnt0031 +spring.datasource.password=dbnt0928! + +#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.faisp.**.model +logging.level.com.atoz_develop.mybatissample.repository=TRACE \ No newline at end of file