警告:com.sun.image.codec.jpeg.JPEGCodec 是java
Sun 的專用 API,可能會在將來版本中刪除maven
解決辦法spa
在pom.xml中bulid -> publgins加入:
code
<plugin> <artifactId>maven-compiler-plugin</artifactId> <configuration> <encoding>UTF-8</encoding> <compilerArguments> <verbose /> <bootclasspath>${java.home}\lib\rt.jar</bootclasspath> </compilerArguments> </configuration> </plugin>