/**
     * 判断项目中是否有slf4j的实现类
     */
    @org.junit.Test
    public void test() {
        try {
            Enumeration<URL> resources = ClassLoader.getSystemResources("org/slf4j/impl/StaticLoggerBinder.class");
            while (resources.hasMoreElements()) {
                URL url = resources.nextElement();
                System.out.println(url.toString());
            }
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-18
猜你喜欢
  • 2021-08-21
  • 2021-12-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案