mirror of
https://gitee.com/kekingcn/file-online-preview.git
synced 2025-07-15 05:13:24 +08:00
23 lines
683 B
Java
23 lines
683 B
Java
package cn.keking;
|
|
|
|
import org.springframework.boot.SpringApplication;
|
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|
import org.springframework.context.annotation.ComponentScan;
|
|
import org.springframework.scheduling.annotation.EnableScheduling;
|
|
|
|
@SpringBootApplication
|
|
@EnableScheduling
|
|
@ComponentScan(value = "cn.keking.*")
|
|
public class ServerMain {
|
|
|
|
public static void main(String[] args) {
|
|
ServerMain.staticInitSystemProperty();
|
|
SpringApplication.run(ServerMain.class, args);
|
|
}
|
|
|
|
private static void staticInitSystemProperty(){
|
|
//pdfbox兼容低版本jdk
|
|
System.setProperty("sun.java2d.cmm", "sun.java2d.cmm.kcms.KcmsServiceProvider");
|
|
}
|
|
}
|