Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Springboot Plus
Commits
a817503b
Commit
a817503b
authored
Sep 10, 2019
by
trumansdo
Browse files
自定义注解RequestBodyPlus 将json类型请求可以用json path的形式注入单个参数
parent
b973b56c
Changes
1
Hide whitespace changes
Inline
Side-by-side
plus-admin/admin-core/src/main/java/com/ibeetl/admin/core/annotation/RequestBodyPlus.java
0 → 100644
View file @
a817503b
package
com.ibeetl.admin.core.annotation
;
import
java.lang.annotation.ElementType
;
import
java.lang.annotation.Retention
;
import
java.lang.annotation.RetentionPolicy
;
import
java.lang.annotation.Target
;
@Target
(
ElementType
.
PARAMETER
)
@Retention
(
RetentionPolicy
.
RUNTIME
)
public
@interface
RequestBodyPlus
{
/*写入一个json path。默认直接将json转换为被注解的参数的类型对象*/
String
value
()
default
""
;
boolean
required
()
default
true
;
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment