百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
R

rewrite-spring

> DevOps
开源

为 Spring 项目打开重写配方。

397 stars0 点赞2 次浏览
访问官网GitHub

工具介绍

为 Spring 项目打开重写配方。

What is this?

This project contains a series of Rewrite recipes and visitors to automatically apply best practices in Java Spring Boot applications.

Browse a selection of recipes available through this module in the recipe catalog.

How to use?

See the full documentation at docs.openrewrite.org.

How to generate Spring Boot configuration properties replacement recipes?

  1. Run GeneratePropertiesMigratorConfiguration.java
  2. Commit & push changes.
  3. Repeat periodically as new minor versions of Spring Boot are released.

Why do artifact scanners detect vulnerabilities in recipe artifacts/JARs?

In order to modernize and upgrade old or vulnerable code, some OpenRewrite recipe modules bundle copies of old libraries. Libraries bundled into recipe modules are never executed.

OpenRewrite exercises the Java compiler internally to compile code patterns that exist in these old and/or vulnerable libraries. These patterns are then used to match old or vulnerable code for the sake of modernizing or repairing it.

Using a library in compilation in this way does not trigger class initialization in the way that reflection might, for example. In other words, code paths in libraries used in compilation are never executed, and thus the vulnerability is not exploitable.

The jar has libraries bundled inside of the META-INF/rewrite/classpath directory. However, those JARs are not made into a Fat Jar or a shaded library in the traditional sense. It is not possible that by using rewrite-spring that one of those libraries gets called.

Contributing

We appreciate all types of contributions. See the contributing guide for detailed instructions on how to get started.

Licensing

For more information about licensing, please visit our licensing page.

Issues· 62 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Javaopenrewriteopenrewrite-recipes

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类DevOps
定价开源

> 相关工具

D
Docker
容器化平台,标准化应用交付
G
GitHub Actions
GitHub 原生 CI/CD 工作流
N
Nginx
高性能 Web 服务器与反向代理