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

cn.hiboot.mcn.autoconfigure.web.mvc.resolver.StrToObj Maven / Gradle / Ivy

There is a newer version: 3.3.1
Show newest version
package cn.hiboot.mcn.autoconfigure.web.mvc.resolver;

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

/**
 * 将字符串转成对象
 * 

1.请求时value无用,主要用于kv编码中参数是json字符串的场景,直接转换成参数类型对象

*

2.返回时value可用,默认转map

* * @author DingHao * @since 2021/5/9 19:21 */ @Target({ElementType.METHOD,ElementType.PARAMETER}) @Retention(RetentionPolicy.RUNTIME) public @interface StrToObj { Class value() default Map.class; }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy