@ Deprecated public static Long getLastModifiedTime ( String resourceFile , Class clazz ) { Assert . notNullOrEmptyTrimmed ( resourceFile , "Missing resource file!" ) ; try { URL url = clazz . getResource ( resourceFile ) ; return url . openConnection ( ) . getLastModified ( ) ; // get last modified date of resource } catch ( IOException e ) { return null ; } }
Get resource last modified date