警告:com.sun.image.codec.jpeg.JPEGCodec 是
Sun 的专用 API,可能会在未来版本中删除
解决办法
在pom.xml中bulid -> publgins加入:
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<encoding>UTF-8</encoding>
<compilerArguments>
<verbose />
<bootclasspath>${java.home}\lib\rt.jar</bootclasspath>
</compilerArguments>
</configuration>
</plugin>