Skip to content

Instantly share code, notes, and snippets.

View hajubal's full-sized avatar
😐
Fire!!!!

hajubal hajubal

😐
Fire!!!!
  • initech.com
  • Seoul
View GitHub Profile
@hajubal
hajubal / Spring Spel example
Last active November 19, 2024 01:56
Custom Spring Spel example
package demo;
import static java.lang.reflect.Modifier.*;
import java.util.Arrays;
import java.util.Set;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.beans.factory.config.BeanExpressionResolver;
@hajubal
hajubal / DiskUsageMonitor
Created November 19, 2024 01:55
DiskUsageMonitor
import java.io.File;
import java.text.DecimalFormat;
import java.util.ArrayList;
import java.util.List;
public class DiskUsageMonitor {
public List<DiskUsage> getDiskUsage() {
List<DiskUsage> diskUsages = new ArrayList<>();