Jsonview4 Framework for spring-boot

Jsonview framework built on Jackson framework,Implementation through XML configuration file to customize the json format, greatly improved the Java generates a json string freedom, let the development of modular more convenient quickly.

License

License

Categories

Categories

Spring Boot Container Microservices JSON Data
GroupId

GroupId

com.github.developframework
ArtifactId

ArtifactId

jsonview-spring-boot-starter
Last Version

Last Version

1.1.2
Release Date

Release Date

Type

Type

jar
Description

Description

Jsonview4 Framework for spring-boot
Jsonview framework built on Jackson framework,Implementation through XML configuration file to customize the json format, greatly improved the Java generates a json string freedom, let the development of modular more convenient quickly.
Project URL

Project URL

https://github.com/developframework/spring-boot-starter-jsonview
Source Code Management

Source Code Management

https://github.com/developframework/jsonview-spring-boot-starter

Download jsonview-spring-boot-starter

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.developframework/jsonview-spring-boot-starter/ -->
<dependency>
    <groupId>com.github.developframework</groupId>
    <artifactId>jsonview-spring-boot-starter</artifactId>
    <version>1.1.2</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.developframework/jsonview-spring-boot-starter/
implementation 'com.github.developframework:jsonview-spring-boot-starter:1.1.2'
// https://jarcasting.com/artifacts/com.github.developframework/jsonview-spring-boot-starter/
implementation ("com.github.developframework:jsonview-spring-boot-starter:1.1.2")
'com.github.developframework:jsonview-spring-boot-starter:jar:1.1.2'
<dependency org="com.github.developframework" name="jsonview-spring-boot-starter" rev="1.1.2">
  <artifact name="jsonview-spring-boot-starter" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.developframework', module='jsonview-spring-boot-starter', version='1.1.2')
)
libraryDependencies += "com.github.developframework" % "jsonview-spring-boot-starter" % "1.1.2"
[com.github.developframework/jsonview-spring-boot-starter "1.1.2"]

Dependencies

compile (2)

Group / Artifact Type Version
com.github.developframework : jsonview4-spring jar 4.0.2
org.springframework.boot : spring-boot-starter-web jar 1.5.6.RELEASE

Project Modules

There are no modules declared in this project.

jsonview-spring-boot-starter

1. 引入

<dependency>
  <groupId>com.github.developframework</groupId>
  <artifactId>jsonview-spring-boot-starter</artifactId>
  <version>1.1.2</version>
</dependency>

2. 配置

使用@EnableJsonview注解开启Jsonview功能

@SpringBootApplication
@EnableJsonview
public class MyApplication {
	
  	public static void main(String[] args) {
        SpringApplication.run(MyApplication.class, args);
    }
}

使用注解@EnableJsonview自动化完成对JsonviewResponseReturnValueHandlerDataModelReturnValueHandler的注册。在spring-boot的application.properties总配置项中可以使用

jsonview.locations=classpath*:jsonview/*.xml #指定扫描路径
jsonview.objectmapper.usedefault=true #采用默认的ObjectMapper对象

Versions

Version
1.1.2
1.1.1
1.1.0
1.0.0