mirror of
https://gitee.com/kekingcn/file-online-preview.git
synced 2025-07-16 16:50:53 +08:00
设置pdfbox兼容低版本jdk
This commit is contained in:
parent
f6d54902e9
commit
01218e4a5c
@ -9,7 +9,14 @@ import org.springframework.scheduling.annotation.EnableScheduling;
|
|||||||
@EnableScheduling
|
@EnableScheduling
|
||||||
@ComponentScan(value = "cn.keking.*")
|
@ComponentScan(value = "cn.keking.*")
|
||||||
public class FilePreviewApplication {
|
public class FilePreviewApplication {
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
|
FilePreviewApplication.staticInitSystemProperty();
|
||||||
SpringApplication.run(FilePreviewApplication.class, args);
|
SpringApplication.run(FilePreviewApplication.class, args);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static void staticInitSystemProperty(){
|
||||||
|
//pdfbox兼容低版本jdk
|
||||||
|
System.setProperty("sun.java2d.cmm", "sun.java2d.cmm.kcms.KcmsServiceProvider");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user