![]() ![]() Seem like you want details to convince you. Springboot just configures a property such that by changing this value, you are implicitly changing maven-compiler-plugin 's and to the same value as what specified in the : However I'm not using the compiler plugin.Īctually, at the end it still uses maven-compiler-plugin to compile. I've seen it specified as just "11" when using maven-compiler-plugin, However I'm not sure if Java 11 would be "1.11" (seems unlikely), and The correct way is to use the followings values in for different Java versions: The only related questions I could find are: Minimum Spring version compatible with Java 11, Spring Boot fails due to a Hibernate error after migrating to JDK 11 and Spring 4.3.x with OpenJDK 11, but they don't really shed any light. I tried both and my web server seems to start correctly and compile correctly (IntelliJ shows Information:javac 11.0.2 was used to compile java sources) however I'm not entirely convinced that changing the java.version value is doing anything, because I can set it to e.g. ![]() ![]() I've searched around and couldn't find the answer, as pretty much any documentation I've read as well as blog posts related to the Java version only show versions 8 or 9. I'm not sure if Java 11 would be 1.11 (although it seems unlikely), and I've seen it specified as just 11 when using maven-compiler-plugin, however I'm not using the compiler plugin. I.e., what value do I need to put in the java.version property of the pom?įor Java 8 we use 1.8, just like the documentation shows, for Java 9 it's 1.9. What is the correct way of specifying Java 11 as the version to be used in Spring (or Spring Boot) pom.xml file? ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |