Since Spring boot 1.0.0, the minimal requirement to run a Spring boot application has been Java 6. This can also be found in the reference guide of Spring boot 1.0.0:
Spring Boot can be used with “classic” Java development tools or installed as a command line tool. Regardless, you will need Java SDK v1.6 or higher.
Support for older Java versions has been dropped throughout releases, with Spring boot 1.3 moving to Java 7 as a baseline (still possible to use Java 6 with additional configuration) and Spring boot 2.x moving to Java 8 as a baseline. Additionally to what the documentation says, none of the Spring boot 1.x versions support Java 9 or higher.
Summarized:
- 1.0.0: Support from Java 6 - 8
- 1.3.0: Support from Java 7 - 8, additional configuration for Java 6 required
- 2.0.0: Support from Java 8 - ...
So, the answer is that it's not possible to run in Java 5.
java6
.i recommend to upgrade java version