项目中有excel导出功能,打包时excel模板文件乱码。 解决如下:
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId> <version>${maven.resources.plugin.version}</version> <configuration> <encoding>UTF-8</encoding> <nonFilteredFileExtensions> <nonFilteredFileExtension>xls</nonFilteredFileExtension> <nonFilteredFileExtension>xlsx</nonFilteredFileExtension> <nonFilteredFileExtension>dat</nonFilteredFileExtension> </nonFilteredFileExtensions> </configuration> </plugin>
来源:https://blog.csdn.net/zzchances/article/details/89354316
标签:maven,plugin,excel,乱码,打包,resources From: https://www.cnblogs.com/konglxblog/p/16749405.html