• 大小: 28.65MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-06-22
  • 语言: Html/CSS
  • 标签: java  poi  office  

资源简介

POI修改word、excel、pdf、ppt文件属性如作者以及将其转成html

资源截图

代码片段和文件信息

package com.youzidata.csgstore;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.actuate.health.Health;
import org.springframework.boot.actuate.health.HealthIndicator;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.web.cors.CorsConfiguration;
import org.springframework.web.cors.UrlbasedCorsConfigurationSource;
import org.springframework.web.filter.CorsFilter;

import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * Hello world!
 *
 */
@SpringBootApplication
@EnableSwagger2
@EnableScheduling // 启动定时任务
@EnableCaching
public class App implements HealthIndicator {

public static void main(String[] args) {
SpringApplication.run(App.class args);
}

@Override
public Health health() {
return Health.up().withDetail(“author“ “youzidata“).build();
}

private CorsConfiguration buildConfig() {
CorsConfiguration corsConfiguration = new CorsConfiguration();
corsConfiguration.addAllowedOrigin(“*“);
corsConfiguration.addAllowedHeader(“*“);
corsConfiguration.addAllowedMethod(“*“);
return corsConfiguration;
}

@Bean
public CorsFilter corsFilter() {
UrlbasedCorsConfigurationSource source = new UrlbasedCorsConfigurationSource();
source.registerCorsConfiguration(“/**“ buildConfig());
return new CorsFilter(source);
}
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-05-13 15:16  poi\
     文件        1268  2018-11-01 14:43  poi\.classpath
     文件         565  2019-05-05 10:11  poi\.project
     目录           0  2019-05-13 15:16  poi\.settings\
     文件         155  2018-11-01 14:43  poi\.settings\org.eclipse.core.resources.prefs
     文件         291  2018-11-01 14:43  poi\.settings\org.eclipse.jdt.core.prefs
     文件          90  2018-11-01 14:43  poi\.settings\org.eclipse.m2e.core.prefs
     目录           0  2019-05-13 15:16  poi\logs\
     目录           0  2019-05-13 15:16  poi\logs\speech-calibration-api\
     目录           0  2019-05-07 14:16  poi\logs\speech-calibration-api\2019-02-11\
     文件       24432  2019-02-11 11:21  poi\logs\speech-calibration-api\2019-02-11\error.0.log
     目录           0  2019-04-11 13:49  poi\logs\speech-calibration-api\2019-02-27\
     目录           0  2019-05-13 15:16  poi\logs\speech-calibration-api\2019-04-11\
     文件       53553  2019-04-11 13:55  poi\logs\speech-calibration-api\2019-04-11\error.0.log
     文件       47754  2019-04-15 13:33  poi\logs\speech-calibration-api\2019-04-11\info.0.zip
     目录           0  2019-05-07 14:16  poi\logs\speech-calibration-api\2019-04-15\
     文件       17906  2019-04-24 09:55  poi\logs\speech-calibration-api\2019-04-15\info.0.zip
     目录           0  2019-05-07 14:16  poi\logs\speech-calibration-api\2019-04-24\
     文件       43130  2019-04-25 09:02  poi\logs\speech-calibration-api\2019-04-24\info.0.zip
     目录           0  2019-05-07 14:16  poi\logs\speech-calibration-api\2019-04-25\
     文件       73687  2019-04-26 10:51  poi\logs\speech-calibration-api\2019-04-25\info.0.zip
     目录           0  2019-05-07 14:16  poi\logs\speech-calibration-api\2019-04-26\
     文件        4987  2019-04-28 10:58  poi\logs\speech-calibration-api\2019-04-26\info.0.zip
     目录           0  2019-05-07 14:16  poi\logs\speech-calibration-api\2019-04-28\
     文件       43389  2019-04-30 14:29  poi\logs\speech-calibration-api\2019-04-28\info.0.zip
     文件       18190  2019-04-25 14:51  poi\logs\speech-calibration-api\error.log
     文件      126712  2019-04-30 14:38  poi\logs\speech-calibration-api\info.log
     目录           0  2019-05-13 15:16  poi\logs\user-csgstore\
     目录           0  2019-05-13 15:16  poi\logs\user-csgstore\2019-05-05\
     文件      163835  2019-05-05 16:24  poi\logs\user-csgstore\2019-05-05\error.0.log
     文件       12420  2019-05-06 08:44  poi\logs\user-csgstore\2019-05-05\info.0.zip
............此处省略171个文件信息

评论

共有 条评论