All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.starmcc.qmframework.body.QmBody Maven / Gradle / Ivy

Go to download

springboot based on a series of packaging framework. QmFramework to implements AOP, rewrite the requestBody, global exception catching,version checking, request body parameter symmetric encryption mechanism, controller packaging and the toolkit collection. thank you for using it.

There is a newer version: 3.0.1-RELEASE
Show newest version
package com.starmcc.qmframework.body;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * qmframework请求json数据解析注解
 *
 * @Author: qm
 * @Date 2018年11月30日14:46:28
 */
@Target(ElementType.PARAMETER)//使用在参数上
@Retention(RetentionPolicy.RUNTIME)//运行时注解
public @interface QmBody {
    /**
     * 是否必须传递的参数
     */
    boolean required() default true;

    /**
     * 解析时用到的JSON的key
     */
    String key() default "";
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy