feilong 3.4.1 is released, a tool library that makes Java development easier

  1. Let you get rid of a lot of repetitive underlying code and improve development efficiency;
  2. make your code更简炼,易写,易读,易于维护;

Document address: http://feilong-core.mydoc.io/

maven dependency configuration:


<dependency>
     <groupId>com.github.ifeilong</groupId>
     <artifactId>feilong</artifactId>
     <version>3.4.1</version>
</dependency>

Gradle dependency configuration:


com.github.ifeilong:feilong:3.4.1

This upgrade has a total of 3 changes, see 3.4.1 milestones

#512 Modify com.feilong.context.invoker.DefaultResponseCommandBuilder.build(R) log information [javadoc]
#513 Modify com.feilong.context.invoker.http.HttpRequestUriResolver.parse(String, T) annotation [javadoc]
#514 Create a simple version of ResponseCommandBuilder SimpleHttpAndJsonResponseCommandBuilder [enhancement]

Sample code:

For example, construct a post with requestbody, set the specified header, and directly convert the json string of the request response into an OpenApiResponse bean


  public ResponseCommandBuilder<R, OpenApiResponse> init(){
        SimpleHttpAndJsonResponseCommandBuilder<R, OpenApiResponse> responseCommandBuilder = new SimpleHttpAndJsonResponseCommandBuilder<>(
                        createUri(),
                        HttpMethodType.POST.getMethod(),
                        toMap(HttpHeaders.CONTENT_TYPE, "application/x-www-form-urlencoded; charset=UTF-8"));

        responseCommandBuilder.setResponseCommandRootClass(OpenApiResponse.class);
        responseCommandBuilder.setRequestBodyBuilder(createRequestBodyBuilder());

        return responseCommandBuilder;
    }

#feilong #released #tool #library #Java #development #easier #News Fast Delivery

Leave a Comment

Your email address will not be published. Required fields are marked *