FasterXML/jackson-modules-java8 là dự án Java với 423 sao. Set of support modules for Java 8 datatypes (Optionals, date/time) and features (parameter names)
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
This is a multi-module umbrella project for Jackson
modules needed to support Java 8 features, especially with Jackson 2.x that only
requires Java 7 for running (and until 2.7 only Java 6).
Jackson 2.x
When used with Jackson 2.x, Java 8 support is provided via 3 separate modules:
Parameter names: support for detecting constructor and factory method ("creator") parameters without having to use @JsonProperty annotation
and either include versions directly, OR, preferably, import
Jackson BOM that will specify consistent version set.
Note that the parent project -- jackson-modules-java8 -- is ONLY used as parent pom by
individual "child" modules, and DOES NOT have dependencies on them. This means that you should not depend on it
as that will not include child modules.
Registering modules
The most common mechanism (and one recommended by Jackson team) is to explicitly register modules you want.
This is done by code like:
// Up to Jackson 2.9: (but not with 3.0)
ObjectMapper mapper = new ObjectMapper()
.registerModule(new ParameterNamesModule())
.registerModule(new Jdk8Module())
.registerModule(new JavaTimeModule()); // new module, NOT JSR310Module
// with 3.0 (or with 2.10 as alternative)
ObjectMapper mapper = JsonMapper.builder() // or different mapper for other format
.addModule(new ParameterNamesModule())
.addModule(new Jdk8Module())
.addModule(new JavaTimeModule())
// and possibly other configuration, modules, then:
.build();
Alternatively, you can also auto-discover these modules with:
ObjectMapper mapper = new ObjectMapper();
mapper.findAndRegisterModules();
Regardless of registration mechanism, after registration all functionality is available for all normal Jackson operations.
Notes on Registration
But do note that you should only either explicit OR automatic registration: DO NOT combine explicit
and auto-registration. If you use both, only one of registrations will have effect.
And selection of which one varies by module and settings:
If MapperFeature.IGNORE_DUPLICATE_MODULE_REGISTRATIONS is defined, the FIRST registration succeeds, rest ignored
Duplicates are detected using id provided by Module.getTypeId(); duplicate-detection requires that Module provides same for all instances (true for Modules provided by this repo)
Otherwise all registrations are processed by the LAST one has effect as it has precedence over earlier registrations.
Also note that before Jackson 2.10, auto-registration would only register older JSR310Module, and not newer
JavaTimeModule -- this is due to backwards compatibility. This was changed in Jackson 2.10.
If you want "the other" version of the module but also use auto-registration, make sure to
register "other" module explicitly AFTER calling mapper.findAndRegisterModules().
Call after works because getTypeId() provided by modules differs so they are not considered duplicates.
Development
Maintainers
Following developers have committer access to this project.
Authors
Nick Williams (beamerblvd@github) contributed Java 8 date/time module; still helps issues from time to time
Tatu Saloranta (@cowtowncoder) wrote the other 2 modules and maintains them for 2.x (in 3.0, integrated into core jackson-databind)
Maintainers:
Michael O'Keeffe (kupci@github) is the current maintainer of Java 8 date/time module
Đọc thêm về FasterXML/jackson-modules-java8 ở đâu?
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/FasterXML/jackson-modules-java8 là nguồn chính thức.
FasterXML/jackson-modules-java8 có bao nhiêu sao?
FasterXML/jackson-modules-java8 có 423 sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/FasterXML/jackson-modules-java8. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
FasterXML/jackson-modules-java8 có những chủ đề gì?
GitHub topics của FasterXML/jackson-modules-java8: "hacktoberfest", "jackson", "java-date". TopGit xếp repo vào nhóm mã nguồn mở.
FasterXML/jackson-modules-java8 có website riêng không?
TopGit chưa ghi nhận URL trang chủ cho FasterXML/jackson-modules-java8. Phần README ở tab phía trên thường có link demo, hoặc xem mô tả GitHub của repo.
FasterXML/jackson-modules-java8 còn đang phát triển không?
Commit gần nhất trên FasterXML/jackson-modules-java8 là 6 ngày trước (theo timestamp GitHub). Repo có 122 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
FasterXML/jackson-modules-java8 dùng license gì?
FasterXML/jackson-modules-java8 phát hành theo license Apache-2.0. Nên mở file LICENSE trên GitHub để xác nhận — license metadata đôi khi lệch với thực tế dự án.
FasterXML/jackson-modules-java8 viết bằng ngôn ngữ gì?
FasterXML/jackson-modules-java8 chủ yếu viết bằng Java. Trường "language" của GitHub dựa trên phần lớn byte ở nhánh mặc định.
Đọc đầy đủ README ở tab phía trên.
Chưa chắc jackson-modules-java8 có hợp với bạn?
Để ChatGPT, Claude hoặc Perplexity tìm hiểu giúp — bấm bên dưới và xem AI nói gì về jackson-modules-java8.