快速上手
# 安装
# 核心依赖(可单独作为工具包使用)
<!-- https://search.maven.org/artifact/org.dromara.stream-query/stream-query -->
<dependency>
<groupId>org.dromara.stream-query</groupId>
<artifactId>stream-core</artifactId>
<version>${stream-query-version}</version>
</dependency>
仓库地址: https://gitee.com/dromara/stream-query (opens new window)
// https://search.maven.org/artifact/org.dromara.stream-query/stream-query
implementation group: 'org.dromara.stream-query', name: 'stream-core', version: '版本号在上面'
仓库地址: https://gitee.com/dromara/stream-query (opens new window)
// Make sure to add code blocks to your code group
注意
Java请使用1.8版本,后续会支持JDK17
# 完全摆脱Mapper
的[mybatis-plus
]
<!-- https://search.maven.org/artifact/org.dromara.stream-query/stream-query -->
<dependency>
<groupId>org.dromara.stream-query</groupId>
<artifactId>stream-plugin-mybatis-plus</artifactId>
<version>${stream-query-version}</version>
</dependency>
仓库地址: https://gitee.com/dromara/stream-query (opens new window)
// https://search.maven.org/artifact/org.dromara.stream-query/stream-query
implementation group: 'org.dromara.stream-query', name: 'stream-plugin-mybatis-plus', version: '版本号在上面'
仓库地址: https://gitee.com/dromara/stream-query (opens new window)
// Make sure to add code blocks to your code group
提示
- 内置stream-core依赖,无须重复引入
- 更多关于项目上手的问题,请查阅 问答 (opens new window)。
# 动态Mapper
# @EnableMybatisPlusPlugin
- 描述:指定实体类为其生成动态Mapper接口
- 使用位置:配置类
@SpringBootApplication
@EnableMybatisPlusPlugin(basePackages = "org.dromara.streamquery.stream.plugin.**.pojo.**")
public class SpringBootApplication {}
除此之外,@EnableMybatisPlusPlugin 也支持多种配置方式,详情请参考动态Mapper一文
上次更新: 2024/03/29, 09:17:32