String path = XssRequestWrapper.class.getClassLoader().getResource("antisamy-ebay.xml").getPath();
System.out.println(path);
/home/weblogic/Oracle/Middleware/Oracle_Home/user_projects/domains/pwgkpt_domain/servers/AdminServer/tmp/_WL_user/DPOC/kshjxo/war/WEB-INF/lib/_wl_cls_gen.jar!/antisamy-ebay.xml
文件找不到
URL path = Thread.currentThread().getContextClassLoader().getResource("antisamy-ebay.xml");
System.out.println(path);
zip:/home/weblogic/Oracle/Middleware/Oracle_Home/user_projects/domains/pwgkpt_domain/servers/AdminServer/tmp/_WL_user/DPOC/kshjxo/war/WEB-INF/lib/_wl_cls_gen.jar!/antisamy-ebay.xml
文件能找到