Commit 01218e4a authored by chenkailing's avatar chenkailing Committed by kl

设置pdfbox兼容低版本jdk

parent f6d54902
......@@ -9,7 +9,14 @@ import org.springframework.scheduling.annotation.EnableScheduling;
@EnableScheduling
@ComponentScan(value = "cn.keking.*")
public class FilePreviewApplication {
public static void main(String[] args) {
FilePreviewApplication.staticInitSystemProperty();
SpringApplication.run(FilePreviewApplication.class, args);
}
private static void staticInitSystemProperty(){
//pdfbox兼容低版本jdk
System.setProperty("sun.java2d.cmm", "sun.java2d.cmm.kcms.KcmsServiceProvider");
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment