You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Failure analysis description for BeanDefinitionOverrideExceptions includes useless information when a bean definition has no resource description #18721
Hello, I come to report that the following bug can be reproduced (Spring Boot 2.2.0.RELEASE):
1 - Use the dependencies:
spring-boot-starter-data-jdbc, spring-boot-starter-data-jpa, spring-boot-starter-web, spring-boot-devtools, mysql-connector-java, lombok, spring-boot-starter-test, junit-vintage-engine
2 - Create a repository interface and extending entity JpaRepository
3 - Following error is displayed when starting the spring application using Spring Tool Suite 4: The bean 'personRepository', defined in null, could not be registered. A bean with that name has already been defined in null and overriding is disabled.
4 - When removing the spring-boot-devtools dependency the error no longer occurs.
5 - When starting the spring application with the spring-boot-devtools dependency it is possible to verify that the application's Main method is invoked twice.
6 - Example: public static void main (String [] args) { System.out.println ("test"); SpringApplication.run (XXXApplication.class, args); }