
Research
Supply Chain Attack on Axios Pulls Malicious Dependency from npm
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.
springboot-api-template
Advanced tools
Spring Boot 企业级项目脚手架,快速创建基于 Spring Boot 3.5.5 + MyBatis-Plus + JWT + Redis 的 API 项目
🚀 基于 Spring Boot 3.5.5 的企业级 API 项目脚手架,提供完整的基础设施和最佳实践。
npm install -g springboot-api-template
npx springboot-api-template my-api
# 方式一:使用全局安装的命令
create-springboot-api my-api
# 方式二:使用 npx
npx springboot-api-template my-api
# 方式三:交互式创建
create-springboot-api
创建项目时,脚本会提示你输入:
# 全局安装
npm install -g springboot-api-template
# 或者直接使用 npx
npx springboot-api-template my-api
# 使用 npx 创建项目
npx springboot-api-template my-api
# 或者使用全局命令
create-springboot-api my-api
cd my-api
cp .env.example .env
# 修改 .env 文件中的配置
mysql -u root -p < sql/schema.sql
mvn spring-boot:run
打开浏览器访问: http://localhost:8080/doc.html
# 创建项目(使用默认配置)
npx springboot-api-template my-api
# 或者交互式创建
npx springboot-api-template
脚手架支持交互式配置以下信息:
my-api/
├── src/
│ ├── main/
│ │ ├── java/com/myapi/
│ │ │ ├── common/ # 公共模块
│ │ │ │ ├── cache/ # 缓存封装
│ │ │ │ ├── config/ # 配置类
│ │ │ │ ├── exception/ # 异常类
│ │ │ │ ├── filter/ # 过滤器
│ │ │ │ ├── handler/ # 处理器
│ │ │ │ ├── result/ # 统一响应
│ │ │ │ └── utils/ # 工具类
│ │ │ ├── config/ # Spring 配置
│ │ │ │ ├── JacksonConfig
│ │ │ │ ├── MybatisPlusConfig
│ │ │ │ ├── RedisConfig
│ │ │ │ ├── SecurityConfig
│ │ │ │ └── Knife4jConfig
│ │ │ ├── infrastructure/ # 基础设施层
│ │ │ │ ├── oss/ # 对象存储
│ │ │ │ ├── sms/ # 短信服务
│ │ │ │ └── wechat/ # 微信服务
│ │ │ ├── module/ # 业务模块
│ │ │ │ ├── auth/ # 认证模块
│ │ │ │ └── user/ # 用户模块
│ │ │ └── Application.java # 启动类
│ │ └── resources/
│ │ ├── application.yml # 主配置
│ │ ├── application-dev.yml # 开发环境配置
│ │ ├── application-prod.yml # 生产环境配置
│ │ └── mapper/ # MyBatis XML
│ └── test/ # 测试代码
├── sql/
│ └── schema.sql # 数据库脚本
├── docker-compose.yml # Docker 编排
├── Dockerfile # Docker 镜像
├── .env.example # 环境变量模板
└── README.md # 项目文档
[新增] 新功能
[修复] Bug 修复
[优化] 代码优化
[重构] 代码重构
[文档] 文档更新
[配置] 配置修改
@Data、@RequiredArgsConstructor 简化代码Result<T>ServerException@Validated、@NotBlank 等注解POST /api/auth/loginPOST /api/auth/send-sms-codePOST /api/auth/sms-loginPOST /api/auth/wechat-loginPOST /api/auth/logoutGET /api/user/profilePUT /api/user/profileGET /api/user/page# 构建镜像
docker build -t my-api:1.0.0 .
# 运行容器
docker-compose up -d
# 停止容器
docker-compose down
欢迎提交 Issue 和 Pull Request!
MIT License
FAQs
Spring Boot 企业级项目脚手架,快速创建基于 Spring Boot 3.5.5 + MyBatis-Plus + JWT + Redis 的 API 项目
We found that springboot-api-template demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.