“Spring Boot 集成 MyBatis-Plus”的版本间的差异
跳到导航
跳到搜索
Jihongchang(讨论 | 贡献) |
Jihongchang(讨论 | 贡献) |
||
第17行: | 第17行: | ||
} | } | ||
− | </syntaxhighlight> | + | </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