I’ve the same issue on Ubuntu 16.04.
I found that the problem with
@ComponentScan(basePackages = "com.my.app")
The code is running at least 5 different machine (windows, ubuntu 15.04 and ubuntu 16.04 desktop) but doesn’t start our CI server (ubuntu 16.04 server).
After I changed
@ComponentScan(basePackages = "com.my.app")
to
@ComponentScan(basePackages = {"com.my.app.service", "com.my.app.config", "com.my.app"})
the code is running on CI server too.
I think this is a Spring issue with beans loader…
UPDATE:
https://github.com/spring-projects/spring-boot/issues/6045
https://jira.spring.io/browse/SPR-14307