2025-10-28 20:40:00 +08:00
|
|
|
package com.yolo.keyborad;
|
|
|
|
|
|
2025-12-02 16:47:01 +08:00
|
|
|
import com.yolo.keyborad.common.xfile.ByteFileWrapperAdapter;
|
2025-11-14 15:48:12 +08:00
|
|
|
import com.yolo.keyborad.config.AppleAppStoreProperties;
|
2025-10-28 20:40:00 +08:00
|
|
|
import lombok.extern.slf4j.Slf4j;
|
2025-12-02 16:47:01 +08:00
|
|
|
import org.dromara.x.file.storage.core.tika.ContentTypeDetect;
|
|
|
|
|
import org.dromara.x.file.storage.spring.EnableFileStorage;
|
2025-10-28 20:40:00 +08:00
|
|
|
import org.mybatis.spring.annotation.MapperScan;
|
2025-10-29 15:29:25 +08:00
|
|
|
import org.slf4j.LoggerFactory;
|
2025-10-28 20:40:00 +08:00
|
|
|
import org.springframework.boot.SpringApplication;
|
|
|
|
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
2025-11-14 15:48:12 +08:00
|
|
|
import org.springframework.boot.context.properties.EnableConfigurationProperties;
|
2025-12-02 16:47:01 +08:00
|
|
|
import org.springframework.context.annotation.Bean;
|
2025-10-28 20:40:00 +08:00
|
|
|
|
|
|
|
|
@Slf4j
|
|
|
|
|
@SpringBootApplication
|
2025-11-14 15:48:12 +08:00
|
|
|
@EnableConfigurationProperties(AppleAppStoreProperties.class)
|
2025-12-02 16:47:01 +08:00
|
|
|
@EnableFileStorage
|
2025-10-28 20:40:00 +08:00
|
|
|
public class MyApplication {
|
|
|
|
|
public static void main(String[] args) {
|
|
|
|
|
SpringApplication.run(MyApplication.class, args);
|
|
|
|
|
}
|
|
|
|
|
|
2025-12-02 16:47:01 +08:00
|
|
|
@Bean
|
|
|
|
|
public ByteFileWrapperAdapter byteFileWrapperAdapter(ContentTypeDetect contentTypeDetect) {
|
|
|
|
|
return new ByteFileWrapperAdapter(contentTypeDetect);
|
|
|
|
|
}
|
2025-10-28 20:40:00 +08:00
|
|
|
}
|