Date: 10/01/2022
README.adoc
编译代码
./gradlew build
导入idea
现有代码中的参考。
spring-boot-tests\spring-boot-smoke-tests\spring-boot-smoke-test-jpa\src\main\java\smoketest\jpa\SampleJpaApplication.java
第一个测试用例
import org.springframework.boot.*;
import org.springframework.boot.autoconfigure.*;
import org.springframework.web.bind.annotation.*;
@RestController
@SpringBootApplication
public class Example {
@RequestMapping("/")
String home() {
return "Hello World!";
}
public static void main(String[] args) {
SpringApplication.run(Example.class, args);
}
}
Required: JDK17和Kotlin1.7
JDK17需要 IntelliJ IDEA 2022.2.2
== Building from Source
You don’t need to build from source to use Spring Boot (binaries in https://repo.spring.io[repo.spring.io]), but if you want to try out the latest and greatest, Spring Boot can be built and published to your local Maven cache using the https://docs.gradle.org/current/userguide/gradle_wrapper.html[Gradle wrapper].
You also need JDK 17.
spring-boot-main/README.adoc
ci/scripts/detect-jdk-updates.sh
java17
spring-boot-main/gradle.properties
kotlinVersion=1.7.10
IDEA设置JDK17和Kotlin1.7
设置项目中JDK17版本
设置全局JDK17版本
Situation: GitHub commit code error!
LF will be replaced by CRLF in git - What is that and is it important? [duplicate]
Method 1
git init
git add .
Method 2
git config core.autocrlf true
Filename too long
Reference:
Kotlin download
https://plugins.jetbrains.com/plugin/6954-kotlin/versions/stable
:docs:
https://docs.spring.io/spring-boot/docs/current-SNAPSHOT/reference
:github:
https://github.com/spring-projects/spring-boot
Spring Boot Reference Documentationhttps://docs.spring.io/spring-boot/docs/current-SNAPSHOT/reference/pdf/spring-boot-reference.pdf
LF will be replaced by CRLF in git - What is that and is it important? [duplicate]
https://stackoverflow.com/questions/5834014/lf-will-be-replaced-by-crlf-in-git-what-is-that-and-is-it-important
Git中的“LF will be replaced by CRLF”警告详解
https://blog.csdn.net/taiyangdao/article/details/78629107