我不确定我的配置有什么问题,但是据我所知它应该是正确的,尽管那个春天宣布没有这样的bean定义。我对以下几点表示赞同:
这是我完整的调试日志: spring启动日志pastebin
没有调试标志的日志:
2017-06-12 09:34:36.395 INFO 12880 --- [ restartedMain]
d.a.c.newworlds.NewWorldsApplication : No active profile set, falling back to default profiles: default
2017-06-12 09:34:36.727 INFO 12880 --- [ restartedMain] ationConfigEmbeddedWebApplicationContext : Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@10057b9b: startup date [Mon Jun 12 09:34:36 CEST 2017]; root of context hierarchy
2017-06-12 09:34:38.090 INFO 12880 --- [ restartedMain] o.s.b.f.s.DefaultListableBeanFactory : Overriding bean definition for bean 'playerRepository' with a different definition: replacing [Root bean: class [org.springframework.data.jpa.repository.support.JpaRepositoryFactoryBean]; …Run Code Online (Sandbox Code Playgroud)