问题定位: execl 文件被压缩,导致打不开 解决方案:
pom 文件中添加上:
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<encoding>UTF-8</encoding>
<!-- 特殊处理:过滤resources目录下的xlsx和xls文件,使其不被重新编码 -->
<nonFilteredFileExtensions>
<nonFilteredFileExtension>xlsx</nonFilteredFileExtension>
<nonFilteredFileExtension>xls</nonFilteredFileExtension>
</nonFilteredFileExtensions>
<excludes>
<exclude>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</build>
标签:execl,文件,模版,boot,spring,org,打不开
From: https://blog.51cto.com/u_16250311/7528173