review code.

This commit is contained in:
lijiahang
2023-09-11 18:19:20 +08:00
parent 23d9063ea4
commit 3b74520c38
18 changed files with 120 additions and 87 deletions

View File

@@ -60,9 +60,9 @@ public class DataQuery<T> {
return this;
}
public DataQuery<T> only() {
public T getOne() {
wrapper.last(Const.LIMIT_1);
return this;
return dao.selectOne(wrapper);
}
public T get() {

View File

@@ -38,7 +38,7 @@ public class TransmittableThreadLocalSecurityContextHolderStrategy implements Se
@Override
public void setContext(SecurityContext context) {
Valid.notNull(context, "Only non-null SecurityContext instances are permitted");
Valid.notNull(context, "only non-null SecurityContext instances are permitted");
CONTEXT_HOLDER.set(context);
}