回答編集履歴
1
追記
test
CHANGED
@@ -3,3 +3,45 @@
|
|
3
3
|
|
4
4
|
|
5
5
|
[javaのクラスパスを取得|IT忘備録・メモ書きと日記](http://ameblo.jp/oregano-blog/entry-11599772612.html)
|
6
|
+
|
7
|
+
|
8
|
+
|
9
|
+
ログの「原因」箇所の1行目を改行入れてみました。
|
10
|
+
|
11
|
+
1つしかないはずのものが3つ見つかったといった感じのメッセージをspringフレームワークが出力しているので、クラスパス内に異なるバージョンのspringフレームワークのjarファイルがあるのかもしれません。
|
12
|
+
|
13
|
+
もしくは、warファイルに含めなくてもよいjarファイルを含めているか。
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
```
|
18
|
+
|
19
|
+
org.springframework.beans.factory.BeanCreationException:
|
20
|
+
|
21
|
+
Error creating bean with name 'fileController': Injection of autowired dependencies failed;
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
nested exception is org.springframework.beans.factory.BeanCreationException:
|
26
|
+
|
27
|
+
Could not autowire field:
|
28
|
+
|
29
|
+
private org.springframework.validation.Validator com.name.p.controller.FileDetailController.validator;
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
nested exception is org.springframework.beans.factory.NoUniqueBeanDefinitionException:
|
34
|
+
|
35
|
+
No qualifying bean of type [org.springframework.validation.Validator] is defined:
|
36
|
+
|
37
|
+
expected single matching bean but found 3:
|
38
|
+
|
39
|
+
org.springframework.validation.beanvalidation.OptionalValidatorFactoryBean#0,
|
40
|
+
|
41
|
+
userInfoValidator,
|
42
|
+
|
43
|
+
org.springframework.validation.beanvalidation.OptionalValidatorFactoryBean#1
|
44
|
+
|
45
|
+
```
|
46
|
+
|
47
|
+
|