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

j2html

> 前端框架
开源

Java 到 HTML 生成器。享受类型安全的 HTML 生成。

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

工具介绍

Java 到 HTML 生成器。享受类型安全的 HTML 生成。

j2html

Java to HTML generator. Enjoy typesafe HTML generation.

The project webpage is j2html.com.

Getting started

Add the maven dependency

xml

    com.j2html
    j2html
    1.6.0

Or the gradle dependency

compile 'com.j2html:j2html:1.6.0'

Import TagCreator and start building HTML

java
import static j2html.TagCreator.*;

public class Main {
    public static void main(String[] args) {
        body(
            h1("Hello, World!"),
            img().withSrc("/img/hello.png")
        ).render();
    }
}

The above Java will result in the following HTML:

xml

    
Hello, World!

    

Find more examples at http://j2html.com/examples.html

Issues· 28 开放

查看全部 Issues在 GitHub 打开

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

> 标签

Javahtml-generatorhtml5javatemplate-engine

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

> 工具信息

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

> 相关工具

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架