I need to put a app built on top of Spring Boot to run in an environment with Java 6, I'm finding some problems. I did some testing, I downloaded a new project by start.spring.io set to Java 6 and the problem still persists.
I'm finding it strange because the project recovered by start.spring.io (set to Java 6) does not apply the recommended settings in the documentation to run on Java 6
After applying the recommended settings described on the site, the error persists.
With Jetty settings:
ERROR 7776 --- [main] osboot.SpringApplication: Application startup failed
java.lang.UnsupportedClassVersionError: org / apache / tomcat / jdbc / pool / DataSource: Unsupported major.minor version 51.0
With Tomcat configurations:
05/14/2015 07: 50: 18,112 ERROR 10852 --- [main]
osboot.SpringApplication: Application startup failed
Exception in thread "main" java.lang.UnsupportedClassVersionError:
javax / annotation / ManagedBean: Unsupported major.minor version 51.0
JDK version: 1.6.0_45
Spring Boot: v1.2.3.RELEASE
Build with Gradle
Any suggestions of what I might be doing wrong?