这是idea 对.class反编译的结果。要想看完整源码,可以使用maven-source-plugin,在pom.xml里配置:

<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-source-plugin</artifactId>
  <executions>
    <execution>
      <id>attach-sources</id>
      <goals>
        <goal>jar</goal>
      </goals>
    </execution>
  </executions>
</plugin>

然后:

mvn clean package

在target目录下会看到:

  • xx.jar

  • xx-sources.jar

sources.jar就是可读的源码jar

相关文章:

  • 2022-12-23
  • 2021-05-28
  • 2021-11-26
  • 2021-09-06
  • 2022-12-23
  • 2022-12-23
  • 2021-06-06
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-31
  • 2021-07-21
  • 2022-12-23
  • 2021-08-26
  • 2021-12-01
  • 2022-12-23
相关资源
相似解决方案