background picture of the home page

一念放下,万般自在

爬楼梯

假设正在爬楼梯,需要 n 阶才能到达楼顶;如果每次可以爬 1、2 或 3 个台阶,问有多少种不同的方法可以爬到楼顶? 第 0 阶有 1 种方法可以爬; 第 1 阶有 1 种; 第 2 阶有 2 种(1+1、2); 第 3 阶有 4 种(1+1+1、2+1、3、1+2);

thumbnail of the cover of the post

Spring Boot 集成 JasperReports

Spring Boot 集成 JasperReports JasperReports 官网:https://community.jaspersoft.com/. 导入依赖 pom.xml: <!-- JasperReports 核心库 --> <dependency> <groupId>net.

thumbnail of the cover of the post

Vert.x 集成 SaToken

Vert.x 集成 Sa-Token 官方文档:Sa-Token. 参考教程:自定义 SaTokenContext 指南. Vert.x 提供的 Request 对象不基于 ServletAPI 规范,所以需要手动实现 SaToken 依赖的 Servlet 容器。 导入依赖 build.sbt:

thumbnail of the cover of the post

渲染文字到图片中

Scala 渲染文字到图片中 导入包: import java.awt.image.BufferedImage import java.awt.* import java.io.File import javax.imageio.ImageIO 创建空白图片并渲染文字 @main def draw

thumbnail of the cover of the post