mycom
2022-11-06
221106 최정우 src 폴더 제거 및 back-end => server, front-end => client 로 폴더 명칭 변경
@1cc2c41e9b6f6545bce3bce94fe662964103c65f
--- src/front-end/WEB-INF/web.xml
+++ client/WEB-INF/web.xml
No changes |
--- src/front-end/resources/js/test.js
+++ client/resources/js/test.js
No changes |
--- src/front-end/views/index.html
+++ client/views/index.html
No changes |
--- src/front-end/views/index.html_필요없으면삭제
+++ client/views/index.html_필요없으면삭제
No changes |
--- pom.xml
+++ pom.xml
... | ... | @@ -28,8 +28,8 @@ |
28 | 28 |
<org.springframework.version>5.3.22</org.springframework.version> |
29 | 29 |
<egovframework.rte.version>3.10.0</egovframework.rte.version> |
30 | 30 |
|
31 |
- <back-end-path>${project.basedir}/src/back-end</back-end-path> |
|
32 |
- <front-end-path>${project.basedir}/src/front-end</front-end-path> |
|
31 |
+ <back-end-path>${project.basedir}/server</back-end-path> |
|
32 |
+ <front-end-path>${project.basedir}/client</front-end-path> |
|
33 | 33 |
</properties> |
34 | 34 |
|
35 | 35 |
<!-- repositories: 라이브러리를 다운로드 받을 위치들을 설정 하는 곳 --> |
... | ... | @@ -261,7 +261,7 @@ |
261 | 261 |
<!-- webappDirectory: package된 후 web관련 자원들이 배포될 경로 --> |
262 | 262 |
<!-- <webappDirectory>${build.directory}</webappDirectory>--> |
263 | 263 |
<!-- web.xml 경로 --> |
264 |
- <webXml>${project.basedir}/src/front-end/WEB-INF/web.xml</webXml> |
|
264 |
+ <webXml>client/WEB-INF/web.xml</webXml> |
|
265 | 265 |
</configuration> |
266 | 266 |
</plugin> |
267 | 267 |
</plugins> |
--- src/back-end/main/java/common/util/AsyncUtil.java
+++ server/main/java/common/util/AsyncUtil.java
No changes |
--- src/back-end/main/java/common/util/AuthUtil.java
+++ server/main/java/common/util/AuthUtil.java
No changes |
--- src/back-end/main/java/common/util/CommendUtil.java
+++ server/main/java/common/util/CommendUtil.java
No changes |
--- src/back-end/main/java/common/util/CommonUtil.java
+++ server/main/java/common/util/CommonUtil.java
No changes |
--- src/back-end/main/java/common/util/CountUtil.java
+++ server/main/java/common/util/CountUtil.java
No changes |
--- src/back-end/main/java/common/util/CryptoUtil.java
+++ server/main/java/common/util/CryptoUtil.java
No changes |
--- src/back-end/main/java/common/util/EmailUtil.java
+++ server/main/java/common/util/EmailUtil.java
No changes |
--- src/back-end/main/java/common/util/ExcelReadUtil.java
+++ server/main/java/common/util/ExcelReadUtil.java
No changes |
--- src/back-end/main/java/common/util/FileUtil.java
+++ server/main/java/common/util/FileUtil.java
No changes |
--- src/back-end/main/java/common/util/HTTPUtil.java
+++ server/main/java/common/util/HTTPUtil.java
No changes |
--- src/back-end/main/java/common/util/JsonUtil.java
+++ server/main/java/common/util/JsonUtil.java
No changes |
--- src/back-end/main/java/common/util/StringUtil.java
+++ server/main/java/common/util/StringUtil.java
No changes |
--- src/back-end/main/java/common/util/bean/ApplicationContextProvider.java
+++ server/main/java/common/util/bean/ApplicationContextProvider.java
No changes |
--- src/back-end/main/java/common/util/bean/BeanUtil.java
+++ server/main/java/common/util/bean/BeanUtil.java
No changes |
--- src/back-end/main/java/common/util/reflection/ParentLastURLClassLoader.java
+++ server/main/java/common/util/reflection/ParentLastURLClassLoader.java
No changes |
--- src/back-end/main/java/common/util/reflection/ReflectionUtil.java
+++ server/main/java/common/util/reflection/ReflectionUtil.java
No changes |
--- src/back-end/main/java/common/util/socket/FileUtil.java
+++ server/main/java/common/util/socket/FileUtil.java
No changes |
--- src/back-end/main/java/common/util/socket/SocketManager.java
+++ server/main/java/common/util/socket/SocketManager.java
No changes |
--- src/back-end/main/java/common/util/socket/SocketReponseManager.java
+++ server/main/java/common/util/socket/SocketReponseManager.java
No changes |
--- src/back-end/main/java/common/util/socket/message/Body.java
+++ server/main/java/common/util/socket/message/Body.java
No changes |
--- src/back-end/main/java/common/util/socket/message/Header.java
+++ server/main/java/common/util/socket/message/Header.java
No changes |
--- src/back-end/main/java/common/util/socket/message/MessageProtocol.java
+++ server/main/java/common/util/socket/message/MessageProtocol.java
No changes |
--- src/back-end/main/java/common/util/socket/message/code/MessageCode.java
+++ server/main/java/common/util/socket/message/code/MessageCode.java
No changes |
--- src/back-end/main/java/common/util/socket/message/json/MessageDeserializer.java
+++ server/main/java/common/util/socket/message/json/MessageDeserializer.java
No changes |
--- src/back-end/main/java/common/util/socket/message/vo/Message.java
+++ server/main/java/common/util/socket/message/vo/Message.java
No changes |
--- 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 |
--- 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 |
--- 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 |
--- src/back-end/main/java/common/vo/CheckMessage.java
+++ server/main/java/common/vo/CheckMessage.java
No changes |
--- src/back-end/main/java/common/vo/CommonFile.java
+++ server/main/java/common/vo/CommonFile.java
No changes |
--- src/back-end/main/java/common/vo/CommonValueObject.java
+++ server/main/java/common/vo/CommonValueObject.java
No changes |
--- src/back-end/main/java/common/vo/CommonValueObject_back.java
+++ server/main/java/common/vo/CommonValueObject_back.java
No changes |
--- src/back-end/main/java/common/vo/Org.java
+++ server/main/java/common/vo/Org.java
No changes |
--- src/back-end/main/java/common/vo/Search.java
+++ server/main/java/common/vo/Search.java
No changes |
--- src/back-end/main/java/common/vo/SearchCondition.java
+++ server/main/java/common/vo/SearchCondition.java
No changes |
--- src/back-end/main/java/common/vo/SearchOrder.java
+++ server/main/java/common/vo/SearchOrder.java
No changes |
--- src/back-end/main/java/common/vo/SystemCode.java
+++ server/main/java/common/vo/SystemCode.java
No changes |
--- src/back-end/main/java/common/vo/User.java
+++ server/main/java/common/vo/User.java
No changes |
--- 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 |
--- 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 |
--- 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 |
--- 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 |
--- 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 |
--- 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 |
--- 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 |
--- 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
... | ... | @@ -0,0 +1,74 @@ |
1 | +package kr.co.takensoft.projectName.test.vo; | |
2 | + | |
3 | +public class Test2 { | |
4 | + | |
5 | + private long testSeq; | |
6 | + | |
7 | + private String testTitle; | |
8 | + | |
9 | + private String testContent; | |
10 | + | |
11 | + private String testCreateDatetime; | |
12 | + | |
13 | + private long testCreateUser; | |
14 | + | |
15 | + private String testUpdateDatetime; | |
16 | + | |
17 | + private long testUpdateUser; | |
18 | + | |
19 | + public long getTestSeq() { | |
20 | + return testSeq; | |
21 | + } | |
22 | + | |
23 | + public void setTestSeq(long testSeq) { | |
24 | + this.testSeq = testSeq; | |
25 | + } | |
26 | + | |
27 | + public String getTestTitle() { | |
28 | + return testTitle; | |
29 | + } | |
30 | + | |
31 | + public void setTestTitle(String testTitle) { | |
32 | + this.testTitle = testTitle; | |
33 | + } | |
34 | + | |
35 | + public String getTestContent() { | |
36 | + return testContent; | |
37 | + } | |
38 | + | |
39 | + public void setTestContent(String testContent) { | |
40 | + this.testContent = testContent; | |
41 | + } | |
42 | + | |
43 | + public String getTestCreateDatetime() { | |
44 | + return testCreateDatetime; | |
45 | + } | |
46 | + | |
47 | + public void setTestCreateDatetime(String testCreateDatetime) { | |
48 | + this.testCreateDatetime = testCreateDatetime; | |
49 | + } | |
50 | + | |
51 | + public long getTestCreateUser() { | |
52 | + return testCreateUser; | |
53 | + } | |
54 | + | |
55 | + public void setTestCreateUser(long testCreateUser) { | |
56 | + this.testCreateUser = testCreateUser; | |
57 | + } | |
58 | + | |
59 | + public String getTestUpdateDatetime() { | |
60 | + return testUpdateDatetime; | |
61 | + } | |
62 | + | |
63 | + public void setTestUpdateDatetime(String testUpdateDatetime) { | |
64 | + this.testUpdateDatetime = testUpdateDatetime; | |
65 | + } | |
66 | + | |
67 | + public long getTestUpdateUser() { | |
68 | + return testUpdateUser; | |
69 | + } | |
70 | + | |
71 | + public void setTestUpdateUser(long testUpdateUser) { | |
72 | + this.testUpdateUser = testUpdateUser; | |
73 | + } | |
74 | +} |
--- 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 |
--- src/back-end/main/java/spring/SpringStarter.java
+++ server/main/java/spring/SpringStarter.java
No changes |
--- src/back-end/main/java/spring/config/DataSourceContextConfig.java
+++ server/main/java/spring/config/DataSourceContextConfig.java
... | ... | @@ -25,10 +25,17 @@ |
25 | 25 |
@Bean(name = "mainHikariConfig") |
26 | 26 |
public HikariConfig getMainHikariConfig () { |
27 | 27 |
HikariConfig hikariConfig = new HikariConfig(); |
28 |
+ /* MariaDB |
|
28 | 29 |
hikariConfig.setDriverClassName("org.mariadb.jdbc.Driver"); |
29 | 30 |
hikariConfig.setJdbcUrl("jdbc:mariadb://localhost:3306/test"); |
30 | 31 |
hikariConfig.setUsername("root"); |
31 | 32 |
hikariConfig.setPassword("1234"); |
33 |
+ */ |
|
34 |
+ /* PostgreSQL*/ |
|
35 |
+ hikariConfig.setDriverClassName("org.postgresql.Driver"); |
|
36 |
+ hikariConfig.setJdbcUrl("jdbc:postgresql://localhost:5432/test_db"); |
|
37 |
+ hikariConfig.setUsername("test_user"); |
|
38 |
+ hikariConfig.setPassword("1234"); |
|
32 | 39 |
return hikariConfig; |
33 | 40 |
} |
34 | 41 |
|
--- src/back-end/main/java/spring/config/MybatisContextConfig.java
+++ server/main/java/spring/config/MybatisContextConfig.java
... | ... | @@ -39,6 +39,7 @@ |
39 | 39 |
//Mybatis SQL 작성시, 자주 활용하는 Class 별칭 세팅 |
40 | 40 |
TypeAliasRegistry typeAliasRegistry = super.getTypeAliasRegistry(); |
41 | 41 |
typeAliasRegistry.registerAlias("Test", kr.co.takensoft.projectName.test.vo.Test.class); |
42 |
+ typeAliasRegistry.registerAlias("Test2", kr.co.takensoft.projectName.test.vo.Test2.class); |
|
42 | 43 |
} |
43 | 44 |
} |
44 | 45 |
//Mybatis 동작 설정 객체 생성 |
--- src/back-end/main/java/spring/config/RootContextConfig.java
+++ server/main/java/spring/config/RootContextConfig.java
No changes |
--- 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
... | ... | @@ -0,0 +1,36 @@ |
1 | +<?xml version="1.0" encoding="UTF-8" ?> | |
2 | +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | |
3 | + | |
4 | + | |
5 | +<!-- | |
6 | + 작성자 : 최정우 | |
7 | + 작성일 : 2022.09.01 | |
8 | + 내용 : Sample Mapper 입니다. | |
9 | + --> | |
10 | +<mapper namespace="kr.co.takensoft.projectName.test.dao.TestDAO"> | |
11 | + | |
12 | + <!-- resultMap sample | |
13 | + <resultMap id="CrawlingSiteResult" type="CrawlingSite"> | |
14 | + <result property="crawlingSiteSeq" column="crawling_site_seq"/> | |
15 | + <result property="site" column="site"/> | |
16 | + <collection property="CrawlingChannels" column="{crawlingSiteSeq = crawling_site_seq}" javaType="java.util.ArrayList" ofType="CrawlingChannel" select="getCrawlingChannelList" /> | |
17 | + </resultMap> --> | |
18 | + | |
19 | + <!-- | |
20 | + 작성자 : 최정우 | |
21 | + 작성일 : 2022.09.01 | |
22 | + 내용 : 데이터 조회 테스트 | |
23 | + --> | |
24 | + <select id="testDataSelectList" parameterType="Test2" resultType="Test2"> | |
25 | + SELECT | |
26 | + test_seq AS testSeq | |
27 | + , test_title AS testTitle | |
28 | + , test_content AS testContent | |
29 | + , test_create_datetime AS testCreateDatetime | |
30 | + , test_create_user AS testCreateUser | |
31 | + , test_update_datetime AS testUpdateDatetime | |
32 | + , test_update_user AS testUpdateUser | |
33 | + FROM test_schema.test_table; | |
34 | + </select> | |
35 | + | |
36 | +</mapper>(파일 끝에 줄바꿈 문자 없음) |
--- src/back-end/main/resources/mybatis/main/sample-SQL.xml
+++ server/main/resources/mybatis/sample/sample-SQL.xml_sample
No changes |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?