返回介绍

FAQ

发布于 2020-07-24 21:05:46 字数 1882 浏览 1151 评论 0 收藏 0

Add in the project’s pom.xml file

<repositories>
    <repository>
        <id>snapshots-repo</id>
        <url>https://oss.sonatype.org/content/repositories/snapshots</url>
        <releases>
            <enabled>false</enabled>
        </releases>
        <snapshots>
            <enabled>true</enabled>
        </snapshots>
    </repository>
</repositories>

Then use the corresponding snapshot version, such as 2.0.9-SNAPSHOT.

The snapshot version is generally used to fix an emergency bug or to prioritize new features. Overwrite each time it is published.

How to modify the built-in JSON library?

By default, Blade has a simple json library built in to handle most situations. If you want to customize or you are used to a json library, Blade supports replacement, and currently supports the following json libraries.

If you want to support other libraries, please follow the source extensions yourself.

Add dependencies like jackson

<dependency>
    <groupId>com.bladejava</groupId>
    <artifactId>blade-jackson-support</artifactId>
    <version> latest version</version>
<dependency>

Then add a line before the Blade starts:

JsonKit.jsonSupprt(new FastJsonSupport());

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文