javax.crypto 是java 内置的,打包时pom文件增加

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>1.8</source>
                    <target>1.8</target>
                    <encoding>UTF-8</encoding>
                    <compilerArguments>
                        <bootclasspath>${java.home}/lib/rt.jar;${java.home}/lib/jce.jar</bootclasspath>
                    </compilerArguments>
                </configuration>
            </plugin>
        </plugins>
    </build>
bootclasspath 下两个包要;隔开,亲测成功了,同时还要把jdk安装目录下jre/lib包下的rt.jar和jce.jar包复制到jkd/lib包下
需要哪个就复制哪个