【在IDEA中使用 Spring Initializr 新建 spring boots 項目 - CSDN Apphttp://t.csdnimg.cn/mVs5P
Spring Initializr 創建spring boots項目
添加到pom.xml
? ? ? ? <dependency>
? ? ? ? ? ? <groupId>mysql</groupId>
? ? ? ? ? ? <artifactId>mysql-connector-java</artifactId>
? ? ? ? ? ? <version>5.1.43</version>
? ? ? ? </dependency>
? ? ? ? <dependency>
? ? ? ? ? ? <groupId>org.mybatis.spring.boot</groupId>
? ? ? ? ? ? <artifactId>mybatis-spring-boot-starter</artifactId>
? ? ? ? ? ? <version>2.0.0</version>
? ? ? ? </dependency>
shift+ctr+alt+s設置sdk,language level
file->setting ->java complier添加bytecode version、module version
注:module version和pom.xml 的java.version對應
執行控制臺打印輸出hello