ํ‹ฐ์Šคํ† ๋ฆฌ ๋ทฐ

๋ฐ˜์‘ํ˜•
pom.xml

pom์€ Project Object Model์˜ ์ค„์ž„๋ง๋กœ ํ”„๋กœ์ ํŠธ์— ํ•„์š”ํ•œ ๋ชจ๋“  ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋ฅผ ๊ด€๋ฆฌํ•œ๋‹ค.

Meven์—์„œ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋“ค์€ <dependency></dependency> xml ํƒœ๊ทธ ํ˜•ํƒœ๋ฅผ ์‚ฌ์šฉํ•ด ์ถ”๊ฐ€ํ•  ์ˆ˜ ์žˆ๋‹ค.

 

 

๋ฉ”์ด๋ธ ๋ ˆํŒŒ์ง€ํ† ๋ฆฌ
 

Maven Repository: Search/Browse/Explore

AWS authentication for Synapse Last Release on Jul 9, 2019

mvnrepository.com

๋ฉ”์ด๋ธ ๋ ˆํŒŒ์ง€ํ† ๋ฆฌ ์‚ฌ์ดํŠธ์—์„œ ํ•„์š”ํ•œ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋ฅผ ๊ฒ€์ƒ‰ํ•ด ๋ณต์‚ฌํ•ด์„œ ๊ฐ€์ ธ์˜จ ํ›„ pom.xml์— ์ž‘์„ฑํ•ด ์‚ฌ์šฉํ•œ๋‹ค.

 

 

pom.xml ์†Œ์Šค์ฝ”๋“œ
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/maven-v4_0_0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>com.spring</groupId>
    <artifactId>myapp</artifactId>
    <name>SpringMVCProject</name>
    <packaging>war</packaging>
    <version>1.0.0-BUILD-SNAPSHOT</version>
    <properties>
    <!-- 1. java ๋ฒ„์ „์„ 1.6์—์„œ 1.8๋กœ ๋ณ€๊ฒฝ, springframework ๋ฒ„์ „์„ 5.0.8๋กœ ๋ณ€๊ฒฝ -->
        <java-version>1.8</java-version>
        <org.springframework-version>5.0.8.RELEASE</org.springframework-version>
        <org.aspectj-version>1.6.10</org.aspectj-version>
        <org.slf4j-version>1.6.6</org.slf4j-version>
    </properties>
    <dependencies>
        <!-- Spring -->
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-context</artifactId>
            <version>${org.springframework-version}</version>
            <exclusions>
                <!-- Exclude Commons Logging in favor of SLF4j -->
                <exclusion>
                    <groupId>commons-logging</groupId>
                    <artifactId>commons-logging</artifactId>
                 </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-webmvc</artifactId>
            <version>${org.springframework-version}</version>
        </dependency>
        
 
        <!-- 2. ์Šคํ”„๋ง ๊ด€๋ จ ๋ชจ๋“ˆ ์ถ”๊ฐ€ ์„ค์น˜ -->
        <!-- ์Šคํ”„๋ง jdbc ๋ชจ๋“ˆ ์„ค์น˜ -->
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-jdbc</artifactId>
            <version>${org.springframework-version}</version>
        </dependency>
 
        <!-- ์Šคํ”„๋ง AOP ๋ชจ๋“ˆ -->
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-aop</artifactId>
            <version>${org.springframework-version}</version>
        </dependency>
 
        <!-- ์Šคํ”„๋ง tx ๋ชจ๋“ˆ -->
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-tx</artifactId>
            <version>${org.springframework-version}</version>
        </dependency>
 
        <!-- ์Šคํ”„๋ง ํ…Œ์ŠคํŠธ ๋ชจ๋“ˆ -->
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-test</artifactId>
            <version>${org.springframework-version}</version>
        </dependency>
        
 
        <!-- 3. DB๊ด€๋ จ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ ์„ค์ • : DB์‚ฌ์šฉ์„ ์œ„ํ•ด ์ปค๋„ฅํ„ฐ๊ฐ€ ๊ผญ ์žˆ์–ด์•ผํ•œ๋‹ค. -->
        <!-- mysql-connector-java -->
        <dependency>
            <groupId>mysql</groupId>
            <artifactId>mysql-connector-java</artifactId>
            <version>8.0.15</version>
        </dependency>
        
 
        <!-- 4. ๋งˆ์ด๋ฐ”ํ‹ฐ์Šค ๊ด€๋ จ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ ์„ค์ • -->
        <!-- mybatis core ๋ชจ๋“ˆ -->
        <dependency>
            <groupId>org.mybatis</groupId>
            <artifactId>mybatis</artifactId>
            <version>3.4.6</version>
        </dependency>
        <!-- mybatis-spring : ๋งˆ์ด๋ฐ”ํ‹ฐ์Šค์™€ ์Šคํ”„๋ง์„ ์—ฐ๊ฒฐ -->
        <dependency>
            <groupId>org.mybatis</groupId>
            <artifactId>mybatis-spring</artifactId>
            <version>1.3.2</version>
        </dependency>
        
        
        <!-- 5. ์ปค๋„ฅ์…˜ ํ’€ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ ์„ค์ • : ์‚ฌ์šฉ์ž๊ฐ€ ๋ชฐ๋ฆฌ๊ฒŒ ๋˜๋ฉด ์ปค๋„ฅ์…˜ ๊ฐ์ฒด๊ฐ€ ๋งŽ์ด ํ•„์š”ํ•œ๋ฐ 
๊ฑ”๋„ค๋ฅผ ๋ฏธ๋ฆฌ ๋งŒ๋“ค์–ด๋†“๊ณ  ์“ฐ๋Š”๊ฒƒ -->
        <!-- HikariCP -->
        <dependency>
            <groupId>com.zaxxer</groupId>
            <artifactId>HikariCP</artifactId>
            <version>2.7.8</version>
        </dependency>
        
                
        <!-- AspectJ -->
        <dependency>
            <groupId>org.aspectj</groupId>
            <artifactId>aspectjrt</artifactId>
            <version>${org.aspectj-version}</version>
        </dependency>    
        
        <!-- Logging -->
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-api</artifactId>
            <version>${org.slf4j-version}</version>
        </dependency>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>jcl-over-slf4j</artifactId>
            <version>${org.slf4j-version}</version>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-log4j12</artifactId>
            <version>${org.slf4j-version}</version>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>log4j</groupId>
            <artifactId>log4j</artifactId>
            <version>1.2.15</version>
            <exclusions>
                <exclusion>
                    <groupId>javax.mail</groupId>
                    <artifactId>mail</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>javax.jms</groupId>
                    <artifactId>jms</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>com.sun.jdmk</groupId>
                    <artifactId>jmxtools</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>com.sun.jmx</groupId>
                    <artifactId>jmxri</artifactId>
                </exclusion>
            </exclusions>
            <scope>runtime</scope>
        </dependency>
 
        <!-- @Inject -->
        <dependency>
            <groupId>javax.inject</groupId>
            <artifactId>javax.inject</artifactId>
            <version>1</version>
        </dependency>
                
        <!-- 6. Servlet ๋ฒ„์ „ 2.5 -> 3.1.0์œผ๋กœ ๋ณ€๊ฒฝ, artifactId๋ฅผ javax.servlet-api๋กœ ๋ณ€๊ฒฝ -->
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>javax.servlet-api</artifactId>
            <version>3.1.0</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>javax.servlet.jsp</groupId>
            <artifactId>jsp-api</artifactId>
            <version>2.1</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>jstl</artifactId>
            <version>1.2</version>
        </dependency>
    
        <!-- 7. Test ๋ฒ„์ „์„ 4.12๋ฒ„์ „์œผ๋กœ ๋ณ€๊ฒฝ -->
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.12</version>
            <scope>test</scope>
        </dependency>        
    </dependencies>
    <build>
        <plugins>
            <plugin>
                <artifactId>maven-eclipse-plugin</artifactId>
                <version>2.9</version>
                <configuration>
                    <additionalProjectnatures>
                        <projectnature>org.springframework.ide.eclipse.core.springnature</projectnature>
                    </additionalProjectnatures>
                    <additionalBuildcommands>
                        <buildcommand>org.springframework.ide.eclipse.core.springbuilder</buildcommand>
                    </additionalBuildcommands>
                    <downloadSources>true</downloadSources>
                    <downloadJavadocs>true</downloadJavadocs>
                </configuration>
            </plugin>
            <plugin>
            <!-- 8. ๋ฉ”์ด๋ธ ๋ฒ„์ „ 3.5.1๋กœ ๋ณ€๊ฒฝ, source์™€ target ๋ฒ„์ „์„ 1.8๋กœ ๋ณ€๊ฒฝ -->
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.5.1</version>
                <configuration>
                    <source>1.8</source>
                    <target>1.8</target>
                    <compilerArgument>-Xlint:all</compilerArgument>
                    <showWarnings>true</showWarnings>
                    <showDeprecation>true</showDeprecation>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>exec-maven-plugin</artifactId>
                <version>1.2.1</version>
                <configuration>
                    <mainClass>org.test.int1.Main</mainClass>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>
 

 

 

 

์ปจํƒ์ŠคํŠธ ๋ฃจํŠธ ๋ณ€๊ฒฝ

ํ”„๋กœ์ ํŠธ ์šฐํด๋ฆญ Properties > Web Project Setting

Context root๋ฅผ ์›ํ•˜๋Š” ์ด๋ฆ„์œผ๋กœ ๋ณ€๊ฒฝํ•ด์ค€๋‹ค.

๊ทธ ๋‹ค์Œ ํ†ฐ์บฃ ์„ค์ •์—์„œ Modules์—์„œ ํ•ด๋‹น ํ”„๋กœ์ ํŠธ์˜ Path๋ฅผ ๊ฐ™์€ ์ด๋ฆ„์œผ๋กœ ๋ณ€๊ฒฝํ•ด์ค€๋‹ค.

๋ฐ˜์‘ํ˜•
๋Œ“๊ธ€