spring
Building java application with gradle
Spring Boot Tutorials - javaCode
SpringBoot集成JPA
download lomhok: https://projectlombok.org/download javac -cp lombok.jar User.java #vim User.java import lombok.Getter; import lombok.Setter; @Getter @Setter public class User { private String id; private String name; private Integer age; } javap User.class #显示生成的类 mkdir gs-gradle cd gs-gladle mkdir -p src/main/java/hello #vim build.gradle apply plugin: 'java' gradle tasks gradle build #vim build.gradle, 引入第三方包,才能run apply plugin: 'application' gradle run #生成gradlew和目录gradle gradle wrapper ./gradlew build #查看包内容 jar tvf build/libs/gs-gralde.jar
curl start.spring.io
#查看帮助信息 curl https://start.spring.io curl https://start.spring.io/start.zip -d dependencies=web,devtools \ -d bootVersion=1.5.2.RELEASE -d packaging=war -d groupId=com.test -d name=testone -o myprj.zip unzip -d myprj myprj.zip cd myprj #vim gradle/wrapper/gradle-wrapper.properties distributeUrl=http\://mirrors.cloud.tencent.com/gradle/gradle-8.8.bin #toolChains setting gradle -q javaToolchatins #查看安装的jdk版本 #vim build.gradle languageVerion=JavaLanguageVersion.of(21) ./gradlew bootRun
https://github.com/fengwenyi/APIExample
Eclipse创建springboot+mybatis+gradle项目
Java连接MySQL mysql-connector-java-bin.jar驱动包的下载与安装
Step-By-Step Spring Boot RESTful Web Service Complete Example
MyBatis integration with Spring Boot
Spring、SpringMVC、MyBatis、Spring Boot案例