I also encountered the similar problem in a web application deployed in jboss,while I didn't use spring-boot.But it works fine with a common java application.