mycom 2022-11-06
221106 최정우 src 폴더 제거 및 back-end => server, front-end => client 로 폴더 명칭 변경
@1cc2c41e9b6f6545bce3bce94fe662964103c65f
client/WEB-INF/web.xml (Renamed from src/front-end/WEB-INF/web.xml)
--- src/front-end/WEB-INF/web.xml
+++ client/WEB-INF/web.xml
No changes
client/resources/js/test.js (Renamed from src/front-end/resources/js/test.js)
--- src/front-end/resources/js/test.js
+++ client/resources/js/test.js
No changes
client/views/index.html (Renamed from src/front-end/views/index.html)
--- src/front-end/views/index.html
+++ client/views/index.html
No changes
client/views/index.html_필요없으면삭제 (Renamed from src/front-end/views/index.html_필요없으면삭제)
--- src/front-end/views/index.html_필요없으면삭제
+++ client/views/index.html_필요없으면삭제
No changes
pom.xml
--- pom.xml
+++ pom.xml
@@ -28,8 +28,8 @@
         <org.springframework.version>5.3.22</org.springframework.version>
         <egovframework.rte.version>3.10.0</egovframework.rte.version>
 
-        <back-end-path>${project.basedir}/src/back-end</back-end-path>
-        <front-end-path>${project.basedir}/src/front-end</front-end-path>
+        <back-end-path>${project.basedir}/server</back-end-path>
+        <front-end-path>${project.basedir}/client</front-end-path>
     </properties>
 
     <!-- repositories: 라이브러리를 다운로드 받을 위치들을 설정 하는 곳 -->
@@ -261,7 +261,7 @@
                     <!-- webappDirectory: package된 후 web관련 자원들이 배포될 경로 -->
                     <!-- <webappDirectory>${build.directory}</webappDirectory>-->
                     <!-- web.xml 경로 -->
-                    <webXml>${project.basedir}/src/front-end/WEB-INF/web.xml</webXml>
+                    <webXml>client/WEB-INF/web.xml</webXml>
                 </configuration>
             </plugin>
         </plugins>
server/main/java/common/util/AsyncUtil.java (Renamed from src/back-end/main/java/common/util/AsyncUtil.java)
--- src/back-end/main/java/common/util/AsyncUtil.java
+++ server/main/java/common/util/AsyncUtil.java
No changes
server/main/java/common/util/AuthUtil.java (Renamed from src/back-end/main/java/common/util/AuthUtil.java)
--- src/back-end/main/java/common/util/AuthUtil.java
+++ server/main/java/common/util/AuthUtil.java
No changes
server/main/java/common/util/CommendUtil.java (Renamed from src/back-end/main/java/common/util/CommendUtil.java)
--- src/back-end/main/java/common/util/CommendUtil.java
+++ server/main/java/common/util/CommendUtil.java
No changes
server/main/java/common/util/CommonUtil.java (Renamed from src/back-end/main/java/common/util/CommonUtil.java)
--- src/back-end/main/java/common/util/CommonUtil.java
+++ server/main/java/common/util/CommonUtil.java
No changes
server/main/java/common/util/CountUtil.java (Renamed from src/back-end/main/java/common/util/CountUtil.java)
--- src/back-end/main/java/common/util/CountUtil.java
+++ server/main/java/common/util/CountUtil.java
No changes
server/main/java/common/util/CryptoUtil.java (Renamed from src/back-end/main/java/common/util/CryptoUtil.java)
--- src/back-end/main/java/common/util/CryptoUtil.java
+++ server/main/java/common/util/CryptoUtil.java
No changes
server/main/java/common/util/EmailUtil.java (Renamed from src/back-end/main/java/common/util/EmailUtil.java)
--- src/back-end/main/java/common/util/EmailUtil.java
+++ server/main/java/common/util/EmailUtil.java
No changes
server/main/java/common/util/ExcelReadUtil.java (Renamed from src/back-end/main/java/common/util/ExcelReadUtil.java)
--- src/back-end/main/java/common/util/ExcelReadUtil.java
+++ server/main/java/common/util/ExcelReadUtil.java
No changes
server/main/java/common/util/FileUtil.java (Renamed from src/back-end/main/java/common/util/FileUtil.java)
--- src/back-end/main/java/common/util/FileUtil.java
+++ server/main/java/common/util/FileUtil.java
No changes
server/main/java/common/util/HTTPUtil.java (Renamed from src/back-end/main/java/common/util/HTTPUtil.java)
--- src/back-end/main/java/common/util/HTTPUtil.java
+++ server/main/java/common/util/HTTPUtil.java
No changes
server/main/java/common/util/JsonUtil.java (Renamed from src/back-end/main/java/common/util/JsonUtil.java)
--- src/back-end/main/java/common/util/JsonUtil.java
+++ server/main/java/common/util/JsonUtil.java
No changes
server/main/java/common/util/StringUtil.java (Renamed from src/back-end/main/java/common/util/StringUtil.java)
--- src/back-end/main/java/common/util/StringUtil.java
+++ server/main/java/common/util/StringUtil.java
No changes
server/main/java/common/util/bean/ApplicationContextProvider.java (Renamed from src/back-end/main/java/common/util/bean/ApplicationContextProvider.java)
--- src/back-end/main/java/common/util/bean/ApplicationContextProvider.java
+++ server/main/java/common/util/bean/ApplicationContextProvider.java
No changes
server/main/java/common/util/bean/BeanUtil.java (Renamed from src/back-end/main/java/common/util/bean/BeanUtil.java)
--- src/back-end/main/java/common/util/bean/BeanUtil.java
+++ server/main/java/common/util/bean/BeanUtil.java
No changes
server/main/java/common/util/reflection/ParentLastURLClassLoader.java (Renamed from src/back-end/main/java/common/util/reflection/ParentLastURLClassLoader.java)
--- src/back-end/main/java/common/util/reflection/ParentLastURLClassLoader.java
+++ server/main/java/common/util/reflection/ParentLastURLClassLoader.java
No changes
server/main/java/common/util/reflection/ReflectionUtil.java (Renamed from src/back-end/main/java/common/util/reflection/ReflectionUtil.java)
--- src/back-end/main/java/common/util/reflection/ReflectionUtil.java
+++ server/main/java/common/util/reflection/ReflectionUtil.java
No changes
server/main/java/common/util/socket/FileUtil.java (Renamed from src/back-end/main/java/common/util/socket/FileUtil.java)
--- src/back-end/main/java/common/util/socket/FileUtil.java
+++ server/main/java/common/util/socket/FileUtil.java
No changes
server/main/java/common/util/socket/SocketManager.java (Renamed from src/back-end/main/java/common/util/socket/SocketManager.java)
--- src/back-end/main/java/common/util/socket/SocketManager.java
+++ server/main/java/common/util/socket/SocketManager.java
No changes
server/main/java/common/util/socket/SocketReponseManager.java (Renamed from src/back-end/main/java/common/util/socket/SocketReponseManager.java)
--- src/back-end/main/java/common/util/socket/SocketReponseManager.java
+++ server/main/java/common/util/socket/SocketReponseManager.java
No changes
server/main/java/common/util/socket/message/Body.java (Renamed from src/back-end/main/java/common/util/socket/message/Body.java)
--- src/back-end/main/java/common/util/socket/message/Body.java
+++ server/main/java/common/util/socket/message/Body.java
No changes
server/main/java/common/util/socket/message/Header.java (Renamed from src/back-end/main/java/common/util/socket/message/Header.java)
--- src/back-end/main/java/common/util/socket/message/Header.java
+++ server/main/java/common/util/socket/message/Header.java
No changes
server/main/java/common/util/socket/message/MessageProtocol.java (Renamed from src/back-end/main/java/common/util/socket/message/MessageProtocol.java)
--- src/back-end/main/java/common/util/socket/message/MessageProtocol.java
+++ server/main/java/common/util/socket/message/MessageProtocol.java
No changes
server/main/java/common/util/socket/message/code/MessageCode.java (Renamed from src/back-end/main/java/common/util/socket/message/code/MessageCode.java)
--- src/back-end/main/java/common/util/socket/message/code/MessageCode.java
+++ server/main/java/common/util/socket/message/code/MessageCode.java
No changes
server/main/java/common/util/socket/message/json/MessageDeserializer.java (Renamed from src/back-end/main/java/common/util/socket/message/json/MessageDeserializer.java)
--- src/back-end/main/java/common/util/socket/message/json/MessageDeserializer.java
+++ server/main/java/common/util/socket/message/json/MessageDeserializer.java
No changes
server/main/java/common/util/socket/message/vo/Message.java (Renamed from src/back-end/main/java/common/util/socket/message/vo/Message.java)
--- src/back-end/main/java/common/util/socket/message/vo/Message.java
+++ server/main/java/common/util/socket/message/vo/Message.java
No changes
server/main/java/common/util/socket/message/vo/impl/Command.java (Renamed from src/back-end/main/java/common/util/socket/message/vo/impl/Command.java)
--- src/back-end/main/java/common/util/socket/message/vo/impl/Command.java
+++ server/main/java/common/util/socket/message/vo/impl/Command.java
No changes
server/main/java/common/util/socket/message/vo/impl/File.java (Renamed from src/back-end/main/java/common/util/socket/message/vo/impl/File.java)
--- src/back-end/main/java/common/util/socket/message/vo/impl/File.java
+++ server/main/java/common/util/socket/message/vo/impl/File.java
No changes
server/main/java/common/util/socket/message/vo/impl/Text.java (Renamed from src/back-end/main/java/common/util/socket/message/vo/impl/Text.java)
--- src/back-end/main/java/common/util/socket/message/vo/impl/Text.java
+++ server/main/java/common/util/socket/message/vo/impl/Text.java
No changes
server/main/java/common/vo/CheckMessage.java (Renamed from src/back-end/main/java/common/vo/CheckMessage.java)
--- src/back-end/main/java/common/vo/CheckMessage.java
+++ server/main/java/common/vo/CheckMessage.java
No changes
server/main/java/common/vo/CommonFile.java (Renamed from src/back-end/main/java/common/vo/CommonFile.java)
--- src/back-end/main/java/common/vo/CommonFile.java
+++ server/main/java/common/vo/CommonFile.java
No changes
server/main/java/common/vo/CommonValueObject.java (Renamed from src/back-end/main/java/common/vo/CommonValueObject.java)
--- src/back-end/main/java/common/vo/CommonValueObject.java
+++ server/main/java/common/vo/CommonValueObject.java
No changes
server/main/java/common/vo/CommonValueObject_back.java (Renamed from src/back-end/main/java/common/vo/CommonValueObject_back.java)
--- src/back-end/main/java/common/vo/CommonValueObject_back.java
+++ server/main/java/common/vo/CommonValueObject_back.java
No changes
server/main/java/common/vo/Org.java (Renamed from src/back-end/main/java/common/vo/Org.java)
--- src/back-end/main/java/common/vo/Org.java
+++ server/main/java/common/vo/Org.java
No changes
server/main/java/common/vo/Search.java (Renamed from src/back-end/main/java/common/vo/Search.java)
--- src/back-end/main/java/common/vo/Search.java
+++ server/main/java/common/vo/Search.java
No changes
server/main/java/common/vo/SearchCondition.java (Renamed from src/back-end/main/java/common/vo/SearchCondition.java)
--- src/back-end/main/java/common/vo/SearchCondition.java
+++ server/main/java/common/vo/SearchCondition.java
No changes
server/main/java/common/vo/SearchOrder.java (Renamed from src/back-end/main/java/common/vo/SearchOrder.java)
--- src/back-end/main/java/common/vo/SearchOrder.java
+++ server/main/java/common/vo/SearchOrder.java
No changes
server/main/java/common/vo/SystemCode.java (Renamed from src/back-end/main/java/common/vo/SystemCode.java)
--- src/back-end/main/java/common/vo/SystemCode.java
+++ server/main/java/common/vo/SystemCode.java
No changes
server/main/java/common/vo/User.java (Renamed from src/back-end/main/java/common/vo/User.java)
--- src/back-end/main/java/common/vo/User.java
+++ server/main/java/common/vo/User.java
No changes
server/main/java/kr/co/takensoft/projectName/common/dao/CommonDAO.java (Renamed from src/back-end/main/java/kr/co/takensoft/projectName/common/dao/CommonDAO.java)
--- src/back-end/main/java/kr/co/takensoft/projectName/common/dao/CommonDAO.java
+++ server/main/java/kr/co/takensoft/projectName/common/dao/CommonDAO.java
No changes
server/main/java/kr/co/takensoft/projectName/common/service/CommonService.java (Renamed from src/back-end/main/java/kr/co/takensoft/projectName/common/service/CommonService.java)
--- src/back-end/main/java/kr/co/takensoft/projectName/common/service/CommonService.java
+++ server/main/java/kr/co/takensoft/projectName/common/service/CommonService.java
No changes
server/main/java/kr/co/takensoft/projectName/common/service/impl/CommonServiceImpl.java (Renamed from src/back-end/main/java/kr/co/takensoft/projectName/common/service/impl/CommonServiceImpl.java)
--- src/back-end/main/java/kr/co/takensoft/projectName/common/service/impl/CommonServiceImpl.java
+++ server/main/java/kr/co/takensoft/projectName/common/service/impl/CommonServiceImpl.java
No changes
server/main/java/kr/co/takensoft/projectName/common/web/CommonConroller.java (Renamed from src/back-end/main/java/kr/co/takensoft/projectName/common/web/CommonConroller.java)
--- src/back-end/main/java/kr/co/takensoft/projectName/common/web/CommonConroller.java
+++ server/main/java/kr/co/takensoft/projectName/common/web/CommonConroller.java
No changes
server/main/java/kr/co/takensoft/projectName/test/dao/TestDAO.java (Renamed from src/back-end/main/java/kr/co/takensoft/projectName/test/dao/TestDAO.java)
--- src/back-end/main/java/kr/co/takensoft/projectName/test/dao/TestDAO.java
+++ server/main/java/kr/co/takensoft/projectName/test/dao/TestDAO.java
No changes
server/main/java/kr/co/takensoft/projectName/test/service/TestService.java (Renamed from src/back-end/main/java/kr/co/takensoft/projectName/test/service/TestService.java)
--- src/back-end/main/java/kr/co/takensoft/projectName/test/service/TestService.java
+++ server/main/java/kr/co/takensoft/projectName/test/service/TestService.java
No changes
server/main/java/kr/co/takensoft/projectName/test/service/impl/TestServiceImpl.java (Renamed from src/back-end/main/java/kr/co/takensoft/projectName/test/service/impl/TestServiceImpl.java)
--- src/back-end/main/java/kr/co/takensoft/projectName/test/service/impl/TestServiceImpl.java
+++ server/main/java/kr/co/takensoft/projectName/test/service/impl/TestServiceImpl.java
No changes
server/main/java/kr/co/takensoft/projectName/test/vo/Test.java (Renamed from src/back-end/main/java/kr/co/takensoft/projectName/test/vo/Test.java)
--- src/back-end/main/java/kr/co/takensoft/projectName/test/vo/Test.java
+++ server/main/java/kr/co/takensoft/projectName/test/vo/Test.java
No changes
 
server/main/java/kr/co/takensoft/projectName/test/vo/Test2.java (added)
+++ server/main/java/kr/co/takensoft/projectName/test/vo/Test2.java
@@ -0,0 +1,74 @@
+package kr.co.takensoft.projectName.test.vo;
+
+public class Test2 {
+
+    private long testSeq;
+
+    private String testTitle;
+
+    private String testContent;
+
+    private String testCreateDatetime;
+
+    private long testCreateUser;
+
+    private String testUpdateDatetime;
+
+    private long testUpdateUser;
+
+    public long getTestSeq() {
+        return testSeq;
+    }
+
+    public void setTestSeq(long testSeq) {
+        this.testSeq = testSeq;
+    }
+
+    public String getTestTitle() {
+        return testTitle;
+    }
+
+    public void setTestTitle(String testTitle) {
+        this.testTitle = testTitle;
+    }
+
+    public String getTestContent() {
+        return testContent;
+    }
+
+    public void setTestContent(String testContent) {
+        this.testContent = testContent;
+    }
+
+    public String getTestCreateDatetime() {
+        return testCreateDatetime;
+    }
+
+    public void setTestCreateDatetime(String testCreateDatetime) {
+        this.testCreateDatetime = testCreateDatetime;
+    }
+
+    public long getTestCreateUser() {
+        return testCreateUser;
+    }
+
+    public void setTestCreateUser(long testCreateUser) {
+        this.testCreateUser = testCreateUser;
+    }
+
+    public String getTestUpdateDatetime() {
+        return testUpdateDatetime;
+    }
+
+    public void setTestUpdateDatetime(String testUpdateDatetime) {
+        this.testUpdateDatetime = testUpdateDatetime;
+    }
+
+    public long getTestUpdateUser() {
+        return testUpdateUser;
+    }
+
+    public void setTestUpdateUser(long testUpdateUser) {
+        this.testUpdateUser = testUpdateUser;
+    }
+}
server/main/java/kr/co/takensoft/projectName/test/web/TestConroller.java (Renamed from src/back-end/main/java/kr/co/takensoft/projectName/test/web/TestConroller.java)
--- src/back-end/main/java/kr/co/takensoft/projectName/test/web/TestConroller.java
+++ server/main/java/kr/co/takensoft/projectName/test/web/TestConroller.java
No changes
server/main/java/spring/SpringStarter.java (Renamed from src/back-end/main/java/spring/SpringStarter.java)
--- src/back-end/main/java/spring/SpringStarter.java
+++ server/main/java/spring/SpringStarter.java
No changes
server/main/java/spring/config/DataSourceContextConfig.java (Renamed from src/back-end/main/java/spring/config/DataSourceContextConfig.java)
--- src/back-end/main/java/spring/config/DataSourceContextConfig.java
+++ server/main/java/spring/config/DataSourceContextConfig.java
@@ -25,10 +25,17 @@
     @Bean(name = "mainHikariConfig")
     public HikariConfig getMainHikariConfig () {
         HikariConfig hikariConfig = new HikariConfig();
+        /* MariaDB
         hikariConfig.setDriverClassName("org.mariadb.jdbc.Driver");
         hikariConfig.setJdbcUrl("jdbc:mariadb://localhost:3306/test");
         hikariConfig.setUsername("root");
         hikariConfig.setPassword("1234");
+        */
+        /* PostgreSQL*/
+        hikariConfig.setDriverClassName("org.postgresql.Driver");
+        hikariConfig.setJdbcUrl("jdbc:postgresql://localhost:5432/test_db");
+        hikariConfig.setUsername("test_user");
+        hikariConfig.setPassword("1234");
         return hikariConfig;
     }
 
server/main/java/spring/config/MybatisContextConfig.java (Renamed from src/back-end/main/java/spring/config/MybatisContextConfig.java)
--- src/back-end/main/java/spring/config/MybatisContextConfig.java
+++ server/main/java/spring/config/MybatisContextConfig.java
@@ -39,6 +39,7 @@
             //Mybatis SQL 작성시, 자주 활용하는 Class 별칭 세팅
             TypeAliasRegistry typeAliasRegistry = super.getTypeAliasRegistry();
             typeAliasRegistry.registerAlias("Test", kr.co.takensoft.projectName.test.vo.Test.class);
+            typeAliasRegistry.registerAlias("Test2", kr.co.takensoft.projectName.test.vo.Test2.class);
         }
     }
     //Mybatis 동작 설정 객체 생성
server/main/java/spring/config/RootContextConfig.java (Renamed from src/back-end/main/java/spring/config/RootContextConfig.java)
--- src/back-end/main/java/spring/config/RootContextConfig.java
+++ server/main/java/spring/config/RootContextConfig.java
No changes
server/main/java/spring/config/servlet/WebContextConfig.java (Renamed from src/back-end/main/java/spring/config/servlet/WebContextConfig.java)
--- src/back-end/main/java/spring/config/servlet/WebContextConfig.java
+++ server/main/java/spring/config/servlet/WebContextConfig.java
No changes
 
server/main/resources/mybatis/main/test-SQL.xml (added)
+++ server/main/resources/mybatis/main/test-SQL.xml
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+
+
+<!--
+	작성자 : 최정우
+	작성일 : 2022.09.01
+	내용 : Sample Mapper 입니다.
+ -->
+<mapper namespace="kr.co.takensoft.projectName.test.dao.TestDAO">
+
+    <!-- resultMap sample
+    <resultMap id="CrawlingSiteResult" type="CrawlingSite">
+        <result property="crawlingSiteSeq" column="crawling_site_seq"/>
+        <result property="site" column="site"/>
+        <collection property="CrawlingChannels" column="{crawlingSiteSeq = crawling_site_seq}" javaType="java.util.ArrayList" ofType="CrawlingChannel" select="getCrawlingChannelList" />
+    </resultMap> -->
+
+    <!--
+        작성자 : 최정우
+        작성일 : 2022.09.01
+        내용 : 데이터 조회 테스트
+     -->
+    <select id="testDataSelectList" parameterType="Test2" resultType="Test2">
+        SELECT
+            test_seq AS testSeq
+            , test_title AS testTitle
+            , test_content AS testContent
+            , test_create_datetime AS testCreateDatetime
+            , test_create_user AS testCreateUser
+            , test_update_datetime AS testUpdateDatetime
+            , test_update_user AS testUpdateUser
+	    FROM test_schema.test_table;
+    </select>
+
+</mapper>(파일 끝에 줄바꿈 문자 없음)
server/main/resources/mybatis/sample/sample-SQL.xml_sample (Renamed from src/back-end/main/resources/mybatis/main/sample-SQL.xml)
--- src/back-end/main/resources/mybatis/main/sample-SQL.xml
+++ server/main/resources/mybatis/sample/sample-SQL.xml_sample
No changes
Add a comment
List