“Spring Boot 集成 MyBatis-Plus”的版本间的差异
跳到导航
跳到搜索
Jihongchang(讨论 | 贡献) (建立内容为“1”的新页面) |
Jihongchang(讨论 | 贡献) |
||
(未显示同一用户的2个中间版本) | |||
第1行: | 第1行: | ||
− | + | <syntaxhighlight lang="xml"> | |
+ | <dependency> | ||
+ | <groupId>com.baomidou</groupId> | ||
+ | <artifactId>mybatis-plus-boot-starter</artifactId> | ||
+ | <version>3.5.3</version> | ||
+ | </dependency> | ||
+ | </syntaxhighlight><syntaxhighlight lang="java"> | ||
+ | @Data | ||
+ | public class User { | ||
+ | private Long id; | ||
+ | private String name; | ||
+ | private Integer age; | ||
+ | private String email; | ||
+ | } | ||
+ | </syntaxhighlight><syntaxhighlight lang="java"> | ||
+ | public interface UserMapper extends BaseMapper<User> { | ||
+ | |||
+ | } | ||
+ | </syntaxhighlight>https://github.com/jihch/spring-boot-mybatis-plus-integrated |
2023年2月17日 (五) 01:49的最新版本
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId>
<version>3.5.3</version>
</dependency>
@Data
public class User {
private Long id;
private String name;
private Integer age;
private String email;
}
public interface UserMapper extends BaseMapper<User> {
}
https://github.com/jihch/spring-boot-mybatis-plus-integrated