测试出错
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2020-04-01 18:04:27.444 ERROR 7424 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :
***************************
APPLICATION FAILED TO START
***************************
Description:
The bean 'bookRepository', defined in null, could not be registered. A bean with that name has already been defined in null and overriding is disabled.
Action:
Consider renaming one of the beans or enabling overriding by setting spring.main.allow-bean-definition-overriding=true
改正如上提醒:setting spring.main.allow-bean-definition-overriding=true
我的修改:在yml文件中spring添加