teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

コードが見やすくなるように、編集

2016/06/19 07:51

投稿

sakipon_1983
sakipon_1983

スコア15

title CHANGED
File without changes
body CHANGED
@@ -6,19 +6,20 @@
6
6
  下記のサイトを参考に簡単なWEBアプリケーションを作成してみましたが、エラーとなり
7
7
  原因がわからないため、対処方法を教えてください。
8
8
 
9
- <http://qiita.com/ARS_2000/items/4c680ec9b31725687e04>
9
+ <[http://qiita.com/ARS_2000/items/4c680ec9b31725687e04](http://qiita.com/ARS_2000/items/4c680ec9b31725687e04)>
10
- <https://github.com/domaframework/doma-spring-boot/blob/master/README.md>
10
+ <[https://github.com/domaframework/doma-spring-boot/blob/master/README.md](https://github.com/domaframework/doma-spring-boot/blob/master/README.md)>
11
11
 
12
12
  ###発生している問題・エラーメッセージ
13
13
 
14
14
  ---
15
+
15
16
  org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'demoApplication': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: com.example.ReservationDao com.example.DemoApplication.reservationDao; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.example.ReservationDao] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
16
17
  at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
17
18
 
18
- ---
19
19
 
20
20
  ###該当のソースコード
21
21
  [DemoApplication]
22
+ ```ここに言語を入力
22
23
  package com.example;
23
24
 
24
25
  import java.util.Arrays;
@@ -59,8 +60,10 @@
59
60
  }
60
61
 
61
62
  }
63
+ ```
62
64
 
63
65
  [Reservation]
66
+ ```ここに言語を入力
64
67
  package com.example;
65
68
 
66
69
  import org.seasar.doma.Entity;
@@ -77,7 +80,9 @@
77
80
  }
78
81
 
79
82
 
83
+ ```
80
84
  [ReservationDao]
85
+ ```ここに言語を入力
81
86
  package com.example;
82
87
 
83
88
  import java.util.List;
@@ -101,20 +106,26 @@
101
106
 
102
107
 
103
108
 
109
+ ```
104
110
  [selectAll.sql]
111
+ ```ここに言語を入力
105
112
  SELECT
106
113
  id,
107
114
  name
108
115
  FROM reservation
109
116
  ORDER BY name ASC
110
117
 
118
+ ```
111
119
  [schema.sql]
120
+ ```ここに言語を入力
112
121
  CREATE TABLE reservation (
113
122
  id IDENTITY,
114
123
  NAME VARCHAR(50)
115
124
  );
116
125
 
126
+ ```
117
127
 
128
+
118
129
  ###試したこと
119
130
 
120
131
  参考にした<https://github.com/domaframework/doma-spring-boot/blob/master/README.md>を確認すると、