Inverted dependencies in the web example as Spring Boot 1.4 ships Tomcat 8.5.4 which contains JPA 2.0 types and — if they end up on the classpath before the actual JPA API jar — breaks the Spring 5 JPA bootstrap as it's assuming JPA 2.1 to be the fundamental baseline.