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. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |