ํฐ์คํ ๋ฆฌ ๋ทฐ
๋ฐ์ํ
pom.xml
pom์ Project Object Model์ ์ค์๋ง๋ก ํ๋ก์ ํธ์ ํ์ํ ๋ชจ๋ ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ฅผ ๊ด๋ฆฌํ๋ค.
Meven์์ ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ค์ <dependency></dependency> xml ํ๊ทธ ํํ๋ฅผ ์ฌ์ฉํด ์ถ๊ฐํ ์ ์๋ค.
๋ฉ์ด๋ธ ๋ ํ์งํ ๋ฆฌ
๋ฉ์ด๋ธ ๋ ํ์งํ ๋ฆฌ ์ฌ์ดํธ์์ ํ์ํ ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ฅผ ๊ฒ์ํด ๋ณต์ฌํด์ ๊ฐ์ ธ์จ ํ 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๋ฅผ ๊ฐ์ ์ด๋ฆ์ผ๋ก ๋ณ๊ฒฝํด์ค๋ค.
๋ฐ์ํ
'Project > SpringMVC' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[SpringMVC] ์ด๊ธฐ ์ค์ - servlet-context.xml (0) | 2019.07.10 |
---|---|
[SpringMVC] ์ด๊ธฐ์ค์ - ์ค์ ํ์ผ ์ ๋ฆฌ, web.xml (0) | 2019.07.10 |
[SpringMVC] ์ด๊ธฐ ์ค์ - Legacy ํ๋ก์ ํธ ์์ฑ (0) | 2019.07.10 |
[SpringMVC] ์ด๊ธฐ ์ค์ - Spring ์ค์น (0) | 2019.07.10 |
[SpringMVC] ์ด๊ธฐ ์ค์ - ๊ฐ๋ฐ ํ๊ฒฝ ๊ตฌ์ถ (0) | 2019.07.10 |
๋๊ธ
๊ณต์ง์ฌํญ
์ต๊ทผ์ ์ฌ๋ผ์จ ๊ธ
์ต๊ทผ์ ๋ฌ๋ฆฐ ๋๊ธ
- Total
- Today
- Yesterday
๋งํฌ
TAG
- ์คํ๋ง๋ถํธ ์๋์์ฑ
- java ํ๊ฒฝ๋ณ์
- ์ดํด๋ฆฝ์ค ์ค์น
- java jdk ์ค์น
- ๊ฒ์ํ ์กฐํ
- ๋ณ๋ช ์ฒ๋ฆฌ
- Java
- ์๋ฐ
- ๊ฒ์ํ๋ง๋ค๊ธฐ
- tomcat์ค์น
- ์ดํด๋ฆฝ์ค ํ๊ธ ์ธ์ฝ๋ฉ
- ๊ฐ๋ฐ
- ๊ฒ์ํ ์ญ์
- ๊ฒ์๋ฌผ์กฐํ
- ์๊ณ ๋ฆฌ์ฆ
- Algorithm
- ์๋ฃ๊ตฌ์กฐ
- mysql์ค์น
- ๊ฐ๋ฐํ๊ฒฝ๊ตฌ์ถ
- ์ ์ฒด๊ฒ์๋ฌผ ์กฐํ
- typeAliases
- ์จ๋ฆฌ์์ค
- ๋ถํธ ์๋์์ฑ
- ๊ฒ์๋ฌผ ์ญ์
์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
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 |
๊ธ ๋ณด๊ดํจ