質問編集履歴

3

エラー内容の変更

2016/07/04 09:37

投稿

Hiroaki-Yamada
Hiroaki-Yamada

スコア25

test CHANGED
File without changes
test CHANGED
@@ -1,6 +1,6 @@
1
1
  Spring Boot入門という参考書を勉強しているのですが、参考書のとおりにコードを書いて実行するとエラーが出ます。
2
2
 
3
- 昨日から解決策を調べているのですが、まだわかりません。
3
+ 先週から解決策を調べているのですが、まだわかりません。
4
4
 
5
5
  ご教授お願いいたします。
6
6
 
@@ -380,10 +380,6 @@
380
380
 
381
381
  </build>
382
382
 
383
-
384
-
385
-
386
-
387
383
  </project>
388
384
 
389
385
 
@@ -392,6 +388,4 @@
392
388
 
393
389
  エラー内容
394
390
 
395
- org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jpaMappingContext':At least one JPA metamodel must be present!
396
-
397
- at com.yamada.springboot.MyBootAppApplication.main(MyBootAppApplication.java:10) [classes/:na]
391
+ org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'heloController':Error creating bean with name 'myDataRepository':No bean named 'entityManagerFactory' is defined

2

エラー内容の変更

2016/07/04 09:37

投稿

Hiroaki-Yamada
Hiroaki-Yamada

スコア25

test CHANGED
File without changes
test CHANGED
@@ -230,6 +230,36 @@
230
230
 
231
231
  ```
232
232
 
233
+ ```java
234
+
235
+ package com.yamada.springboot;
236
+
237
+
238
+
239
+ import org.springframework.boot.SpringApplication;
240
+
241
+ import org.springframework.boot.autoconfigure.SpringBootApplication;
242
+
243
+
244
+
245
+ @SpringBootApplication
246
+
247
+ public class MyBootAppApplication {
248
+
249
+
250
+
251
+ public static void main(String[] args) {
252
+
253
+ SpringApplication.run(MyBootAppApplication.class, args);
254
+
255
+ }
256
+
257
+ }
258
+
259
+
260
+
261
+ ```
262
+
233
263
  ```xml
234
264
 
235
265
  <?xml version="1.0" encoding="UTF-8"?>
@@ -362,4 +392,6 @@
362
392
 
363
393
  エラー内容
364
394
 
365
- Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'entityManagerFactory' is defined
395
+ org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jpaMappingContext':At least one JPA metamodel must be present!
396
+
397
+ at com.yamada.springboot.MyBootAppApplication.main(MyBootAppApplication.java:10) [classes/:na]

1

エラー内容を追記しました

2016/07/04 01:47

投稿

Hiroaki-Yamada
Hiroaki-Yamada

スコア25

test CHANGED
File without changes
test CHANGED
@@ -359,3 +359,7 @@
359
359
 
360
360
 
361
361
  ```
362
+
363
+ エラー内容
364
+
365
+ Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'entityManagerFactory' is defined