“Spring Boot 集成 MyBatis-Plus”的版本间的差异
跳到导航
跳到搜索
Jihongchang(讨论 | 贡献) |
Jihongchang(讨论 | 贡献) |
||
(未显示同一用户的1个中间版本) | |||
第5行: | 第5行: | ||
<version>3.5.3</version> | <version>3.5.3</version> | ||
</dependency> | </dependency> | ||
− | </syntaxhighlight> | + | </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