记一次启动spring boot时出现的错误

1、本次版本使用的是spring boot2.0.5,需要jdk1.8以上版本

如图所示,IDEA工具中,File->project Structure->project处,查看使用的版本号

2、spring boot(一) jdk配置

3、避免出现编译时出现问题,在pom.xml上添加上对应的编译版本

<build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>1.8</source>
                    <target>1.8</target>
                </configuration>
            </plugin>
        </plugins>
    </build>

 

相关文章:

  • 2022-12-23
  • 2021-04-12
  • 2021-04-04
  • 2021-07-12
  • 2021-09-05
  • 2021-04-21
  • 2021-09-28
  • 2021-11-16
猜你喜欢
  • 2021-05-02
  • 2021-09-24
  • 2021-11-19
  • 2021-09-27
  • 2022-12-23
相关资源
相似解决方案