回答編集履歴

1

2015/02/09 02:46

投稿

ucddx
ucddx

スコア57

test CHANGED
@@ -1,55 +1,24 @@
1
1
  Servlet APIのバージョンによって変わります。
2
-
3
2
  Servlet 3.xならば、
4
-
5
3
  必要最低限な依存関係は、
6
4
 
7
-
8
-
9
- ```lang-<ここに言語を入力>
10
-
11
5
  <dependency>
12
-
13
6
  <groupId>org.glassfish.jersey.core</groupId>
14
-
15
7
  <artifactId>jersey-server</artifactId>
16
-
17
8
  <version>2.12</version>
18
-
9
+ </dependency>
10
+ <dependency>
11
+ <groupId>org.glassfish.jersey.containers</groupId>
12
+ <artifactId>jersey-container-servlet</artifactId>
13
+ <version>2.12</version>
19
14
  </dependency>
20
15
 
16
+ となります。Servlet2.xならば、後者が、
21
17
  <dependency>
22
-
23
18
  <groupId>org.glassfish.jersey.containers</groupId>
24
-
25
- <artifactId>jersey-container-servlet</artifactId>
19
+ <artifactId>jersey-container-servlet-core</artifactId>
26
-
27
20
  <version>2.12</version>
28
-
29
21
  </dependency>
30
-
31
- ```
32
-
33
-
34
-
35
- となります。Servlet2.xならば、後者が、
36
-
37
- ```lang-<ここに言語を入力>
38
-
39
- <dependency>
40
-
41
- <groupId>org.glassfish.jersey.containers</groupId>
42
-
43
- <artifactId>jersey-container-servlet-core</artifactId>
44
-
45
- <version>2.12</version>
46
-
47
- </dependency>
48
-
49
- ```
50
-
51
-
52
22
 
53
23
  となります。後は必要に応じてライブラリを足してください。
54
24
 
55
-