Today i just tried to build my first web Java application. I follow the instructions from this link: https://docs.spring.io/spring-boot/docs/1.0.2.RELEASE/reference/html/getting-started-first-application.html
Everything looks good until i reach to step 10.4 , i got this error
[ERROR] Source option 6 is no longer supported. Use 7 or later.
[ERROR] Target option 6 is no longer supported. Use 7 or later.
Some recommend that we need to add this in to
1.8
1.8
It works for some people , but it’s not working for me. Finally i found that i need to add this
1.9
More detail is from this url: https://www.baeldung.com/maven-java-version
This is my final pom.xml
4.0.0
com.example
myproject
0.0.1-SNAPSHOT
org.springframework.boot
spring-boot-starter-parent
1.0.2.RELEASE
1.9
org.springframework.boot
spring-boot-starter-web
org.springframework.boot
spring-boot-maven-plugin