Fetch the repository succeeded.
https://github.com/zhou-hao/hsweb4-examples
注意:
项目主要基于spring-boot
,spring-webflux
. 在使用hsweb
之前,你应该对 project-reactor ,
spring-boot 有一定的了解.
项目模块太多?不要被吓到.我们不推荐将本项目直接clone
后修改,运行.而是使用maven依赖的方式使用hsweb
. 选择自己需要的模块进行依赖,正式版发布后,所有模块都将发布到maven中央仓库.
各个模块的使用方式查看对应模块下的 README.md
,在使用之前, 你可以先粗略浏览一下各个模块,对每个模块的作用有大致的了解.
模块 | 说明 |
---|---|
hsweb-authorization | 权限控制 |
hsweb-commons | 基础通用功能 |
hsweb-concurrent | 并发包,缓存,等 |
hsweb-core | 框架核心,基础工具类 |
hsweb-datasource | 数据源 |
hsweb-logging | 日志 |
hsweb-starter | 模块启动器 |
hsweb-system | 系统常用功能 |
//where name = #{name}
createQuery()
.where("name",name)
.fetch();
//update s_user set name = #{user.name} where id = #{user.id}
createUpdate()
.set(user::getName)
.where(user::getId)
.execute();
@Table(name = "s_entity")
public class MyEntity {
@Id
private String id;
@Column
private String name;
@Column
private Long createTime;
}
直接注入即可实现增删改查
@Autowire
private ReactiveRepository<MyEntity, String> repository;
@PostMapping("/account")
@SaveAction
public Mono<String> addAccount(@RequestBody Mono<Account> account){
return accountService.doSave(account);
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
Activity
Community
Health
Trend
Influence
:Code submit frequency
:React/respond to issue & PR etc.
:Well-balanced team members and collaboration
:Recent popularity of project
:Star counts, download counts etc.