Skip to content

Commit

Permalink
change docker image name to GitHub.
Browse files Browse the repository at this point in the history
Signed-off-by: AlexBob <[email protected]>
  • Loading branch information
vnobo committed Oct 20, 2023
1 parent d0709e7 commit cd4cc09
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,9 @@ protected Mono<Long> countWithCache(Object key, Mono<Long> sourceMono) {
private void cachePut(String cacheKey, Object obj) {
DataSize objectSize = com.platform.boot.commons.utils.BeanUtils.getBeanSize(obj);
if (objectSize.toBytes() > maxInMemorySize.toBytes()) {
throw RestServerException.withMsg("Object size ", "");
throw RestServerException.withMsg("Object size is too large.",
"Object size is too large, max size is " + maxInMemorySize.toBytes() + "," +
" Object size is " + objectSize.toBytes() + ".");
}
this.cache.put(cacheKey, obj);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
* @author <a href="https://github.com/vnobo">Alex bob</a>
*/
public class BeanUtils {
private static final ByteArrayOutputStream BYTE_ARRAY_OUTPUT_STREAM = new ByteArrayOutputStream();
private static final ObjectOutputStream OBJECT_OUTPUT_STREAM;
private final static ByteArrayOutputStream BYTE_ARRAY_OUTPUT_STREAM = new ByteArrayOutputStream();
private final static ObjectOutputStream OBJECT_OUTPUT_STREAM;

static {
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
@Log4j2
@Component
public final class ContextUtils implements Serializable {
public static final String CSRF_TOKEN_CONTEXT = "CSRF_TOKEN_CONTEXT";
public static final String SECURITY_AUTH_TOKEN_HEADER = "X-Auth-Token";
public final static String CSRF_TOKEN_CONTEXT = "CSRF_TOKEN_CONTEXT";
public final static String SECURITY_AUTH_TOKEN_HEADER = "X-Auth-Token";
public static ObjectMapper OBJECT_MAPPER;
public static Snowflake SNOW_FLAKE;
public static UsersService USERS_SERVICE;
Expand Down

0 comments on commit cd4cc09

Please sign in to comment.