上一页 1 ··· 49 50 51 52 53 54 55 56 57 ··· 68 下一页
摘要: <!-- JPA的依赖--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-jpa</artifactId> </dependency> 阅读全文
posted @ 2022-12-13 13:47 cnetsa 阅读(60) 评论(0) 推荐(0)
摘要: <!-- Springboot整合mybatis依赖--> <dependency> <groupId>org.mybatis.spring.boot</groupId> <artifactId>mybatis-spring-boot-starter</artifactId> <version>1. 阅读全文
posted @ 2022-12-13 13:47 cnetsa 阅读(132) 评论(0) 推荐(0)
摘要: <!-- thymeleaf整合依赖--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf</artifactId> </dependency> 阅读全文
posted @ 2022-12-13 13:47 cnetsa 阅读(58) 评论(0) 推荐(0)
摘要: <!-- 打包方式--> <!-- <packaging>war</packaging>--> <packaging>jar</packaging> <!-- 新版本SpringBoot为什么去掉了Parent依赖 maven有继承关系,它跟java中类继承关系是一样的,可以进行子继承父依赖。 -- 阅读全文
posted @ 2022-12-13 13:46 cnetsa 阅读(44) 评论(0) 推荐(0)
摘要: <modelVersion>4.0.0</modelVersion> <groupId>com.example</groupId> <artifactId>demo</artifactId> <version>0.0.1-SNAPSHOT</version> <name>demo</name> <d 阅读全文
posted @ 2022-12-13 13:46 cnetsa 阅读(47) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html lang="en" xmlns:th="http://www.thymeleaf.org"> <head> <meta charset="UTF-8"> <title>thymeleaf</title> </head> <body> <!-- 获取变量-- 阅读全文
posted @ 2022-12-13 13:46 cnetsa 阅读(39) 评论(0) 推荐(0)
摘要: /** * @RestController: 复合注解,表示该类中所有的方法返回的数据类型都是json * * @RestController = @Controller + @ResponseBody * * REST API注解: @GetMapping、@PostMapping、@PutMap 阅读全文
posted @ 2022-12-13 13:36 cnetsa 阅读(62) 评论(0) 推荐(0)
摘要: import org.springframework.boot.context.properties.ConfigurationProperties; @ConfigurationProperties 阅读全文
posted @ 2022-12-13 13:34 cnetsa 阅读(47) 评论(0) 推荐(0)
摘要: import javax.validation.constraints.Pattern; @Pattern 阅读全文
posted @ 2022-12-13 13:33 cnetsa 阅读(81) 评论(0) 推荐(0)
摘要: import org.hibernate.validator.constraints.Range; @Range 阅读全文
posted @ 2022-12-13 13:33 cnetsa 阅读(67) 评论(0) 推荐(0)
上一页 1 ··· 49 50 51 52 53 54 55 56 57 ··· 68 下一页