rstoyanchev / spring-websocket-portfolio

740 stars 443 forks source link

fixed integration tests #65

Closed lukaszkuczynski closed 4 years ago

lukaszkuczynski commented 8 years ago

on my local machine, running from Eclipse was giving this error while try to run IntegrationPortfolioTests, Caused by: java.lang.IllegalStateException: Ambiguous mapping found. Cannot map 'homeController' bean method it seems that @Bean annotation was superfluous

rstoyanchev commented 8 years ago

Actually the whole @Bean method can go. The HomeController itself is declared as a bean through the @RestController.